test deploy
All checks were successful
Go2ticket auto deployement / Go2ticket (push) Successful in 12s

This commit is contained in:
Clément CHABANNE 2024-06-09 02:20:26 +02:00
parent 4bca612fe5
commit 55c0bbf9e2

View File

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