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"