diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index 410700d..c285b07 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -34,20 +34,20 @@ jobs: ls -l go2ticket-* - name: Deploy release - if: github.ref == 'refs/heads/master' + if: gitea.ref == 'refs/heads/master' run: | echo "Deploying artifacts on Gitea server" RESPONSE=$(curl -X POST -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \ -H "Content-Type: application/json" \ -d '{ - "tag_name": "${{ github.ref }}", - "target_commitish": "${{ github.sha }}", - "name": "${{ github.ref }}", + "tag_name": "${{ gitea.ref }}", + "target_commitish": "${{ gitea.sha }}", + "name": "${{ gitea.ref }}", "body": "Release description", "draft": true, "prerelease": false }' \ - "${{ vars.GIT_URL }}/api/v1/repos/${{ github.repository }}/releases") + "${{ vars.GIT_URL }}/api/v1/repos/${{ gitea.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" \ - "${{ vars.GIT_URL }}/api/v1/repos/${{ github.repository }}/releases/${RELEASE_ID}/assets" + "${{ vars.GIT_URL }}/api/v1/repos/${{ gitea.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" \ - "${{ vars.GIT_URL }}/api/v1/repos/${{ github.repository }}/releases/${RELEASE_ID}/assets" + "${{ vars.GIT_URL }}/api/v1/repos/${{ gitea.repository }}/releases/${RELEASE_ID}/assets" else echo "Failed to create release. Aborting deployment." exit 1