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