From aa32dae62282be9c07ea6e4af514925585d97a2b Mon Sep 17 00:00:00 2001 From: b <> Date: Fri, 31 Jan 2025 20:15:52 +0000 Subject: [PATCH] fix: adding api to release url --- .gitea/workflows/release-production.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/release-production.yaml b/.gitea/workflows/release-production.yaml index a70a620..e9b9d3d 100644 --- a/.gitea/workflows/release-production.yaml +++ b/.gitea/workflows/release-production.yaml @@ -45,11 +45,11 @@ jobs: - name: Upload assets to release run: | echo "fetching release id" - RELEASE_ID=`curl -k 'https://git.nostrdev.com/sigit/sigit.io/releases/latest?access_token=${{ secrets.RELEASE_TOKEN }}' | jq -r '.id'` + RELEASE_ID=`curl -k 'https://git.nostrdev.com/api/v1/repos/sigit/sigit.io/releases/latest?access_token=${{ secrets.RELEASE_TOKEN }}' | jq -r '.id'` echo "fetching release body" - RELEASE_BODY=`curl -k 'https://git.nostrdev.com/sigit/sigit.io/releases/latest?access_token=${{ secrets.RELEASE_TOKEN }}' | jq -r '.body'` + RELEASE_BODY=`curl -k 'https://git.nostrdev.com/api/v1/repos/sigit/sigit.io/releases/latest?access_token=${{ secrets.RELEASE_TOKEN }}' | jq -r '.body'` echo "Updating release body" curl --data '{"draft": false,"body":"'"$RELEASE_BODY\n\nFor installation instructions, please visit https://docs.sigit.io/#/"'"}' -X PATCH --header 'Content-Type: application/json' -k https://git.nostrdev.com/sigit/sigit.io/releases/$RELEASE_ID?access_token=${{ secrets.RELEASE_TOKEN }} echo "Uploading assets" - URL="https://git.nostrdev.com/sigit/sigit.io/releases/$RELEASE_ID/assets?access_token=${{ secrets.RELEASE_TOKEN }}" + URL="https://git.nostrdev.com/api/v1/repos/sigit/sigit.io/releases/$RELEASE_ID/assets?access_token=${{ secrets.RELEASE_TOKEN }}" curl -k $URL -F attachment=@dist.zip