From 37fe28c070c1effbf95c3e71618501337cdf1466 Mon Sep 17 00:00:00 2001 From: daniyal Date: Fri, 31 Jan 2025 16:15:29 +0500 Subject: [PATCH] chore(workflow): fixed release step in gitea workflow --- .gitea/workflows/release-production.yaml | 8 ++++---- .gitignore | 1 + .releaserc | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/release-production.yaml b/.gitea/workflows/release-production.yaml index 1603b35..5a5b030 100644 --- a/.gitea/workflows/release-production.yaml +++ b/.gitea/workflows/release-production.yaml @@ -43,10 +43,10 @@ jobs: - name: Upload assets to release run: | - RELEASE_ID=`curl -k 'https://git.nostrdev.com/sigit/sigit.io/api/v1/repos/sigit/sigit.io/releases/latest?access_token=${{ secrets.RELEASE_TOKEN }}' | jq -r '.id'` - RELEASE_BODY=`curl -k 'https://git.nostrdev.com/sigit/sigit.io/api/v1/repos/sigit/sigit.io/releases/latest?access_token=${{ secrets.RELEASE_TOKEN }}' | jq -r '.body'` + RELEASE_ID=`curl -k 'https://git.nostrdev.com/sigit/sigit.io/releases/latest?access_token=${{ secrets.RELEASE_TOKEN }}' | jq -r '.id'` + RELEASE_BODY=`curl -k 'https://git.nostrdev.com/sigit/sigit.io/releases/latest?access_token=${{ secrets.RELEASE_TOKEN }}' | jq -r '.body'` # Update 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/api/v1/repos/sigit/sigit.io/releases/$RELEASE_ID?access_token=${{ secrets.RELEASE_TOKEN }} + 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 }} # Upload assets - URL="https://git.nostrdev.com/sigit/sigit.io/api/v1/repos/sigit/sigit.io/releases/$RELEASE_ID/assets?access_token=${{ secrets.RELEASE_TOKEN }}" + URL="https://git.nostrdev.com/sigit/sigit.io/releases/$RELEASE_ID/assets?access_token=${{ secrets.RELEASE_TOKEN }}" curl -k $URL -F attachment=@dist.zip diff --git a/.gitignore b/.gitignore index 3779e8f..931685a 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ pnpm-debug.log* lerna-debug.log* node_modules +dist dist-zip dist-ssr *.local diff --git a/.releaserc b/.releaserc index 1eff713..4b19c2c 100644 --- a/.releaserc +++ b/.releaserc @@ -19,7 +19,7 @@ [ "@saithodev/semantic-release-gitea", { - "giteaUrl": "https://git.nostrdev.com/sigit/sigit.io", + "giteaUrl": "https://git.nostrdev.com/", "assets": [ { "path": "dist-zip/dist.zip" -- 2.34.1