From e7e87289c195727061c9db279769bbde9933118c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20CHABANNE?= Date: Sun, 9 Jun 2024 02:22:03 +0200 Subject: [PATCH] test deploy --- .gitea/workflows/actions.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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