diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index bd4abea..410700d 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -32,7 +32,7 @@ jobs: tar -xvzf crxmake_v0.2.0_linux_amd64.tar.gz crxmake_v0.2.0_linux_amd64/crxmake ./crxmake_v0.2.0_linux_amd64/crxmake src/ go2ticket-chrome.crx ls -l go2ticket-* - + - name: Deploy release if: github.ref == 'refs/heads/master' run: | @@ -47,7 +47,7 @@ jobs: "draft": true, "prerelease": false }' \ - "${{ secrets.GIT_URL }}/api/v1/repos/${{ github.repository }}/releases") + "${{ vars.GIT_URL }}/api/v1/repos/${{ github.repository }}/releases") echo "Response: $RESPONSE" RELEASE_ID=$(echo $RESPONSE | jq -r '.id') echo "RELEASE_ID=${RELEASE_ID}" @@ -56,12 +56,12 @@ jobs: curl -X POST -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \ -H "Content-Type: multipart/form-data" \ -F "attachment=@go2ticket-firefox.xpi" \ - "${{ secrets.GIT_URL }}/api/v1/repos/${{ github.repository }}/releases/${RELEASE_ID}/assets" + "${{ vars.GIT_URL }}/api/v1/repos/${{ github.repository }}/releases/${RELEASE_ID}/assets" curl -X POST -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \ -H "Content-Type: multipart/form-data" \ -F "attachment=@go2ticket-chrome.crx" \ - "${{ secrets.GIT_URL }}/api/v1/repos/${{ github.repository }}/releases/${RELEASE_ID}/assets" + "${{ vars.GIT_URL }}/api/v1/repos/${{ github.repository }}/releases/${RELEASE_ID}/assets" else echo "Failed to create release. Aborting deployment." exit 1