test deploy
All checks were successful
Go2ticket auto deployement / Go2ticket (push) Successful in 18s
All checks were successful
Go2ticket auto deployement / Go2ticket (push) Successful in 18s
This commit is contained in:
parent
55c0bbf9e2
commit
e7e87289c1
|
@ -34,20 +34,20 @@ jobs:
|
||||||
ls -l go2ticket-*
|
ls -l go2ticket-*
|
||||||
|
|
||||||
- name: Deploy release
|
- name: Deploy release
|
||||||
if: github.ref == 'refs/heads/master'
|
if: gitea.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
echo "Deploying artifacts on Gitea server"
|
echo "Deploying artifacts on Gitea server"
|
||||||
RESPONSE=$(curl -X POST -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \
|
RESPONSE=$(curl -X POST -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{
|
||||||
"tag_name": "${{ github.ref }}",
|
"tag_name": "${{ gitea.ref }}",
|
||||||
"target_commitish": "${{ github.sha }}",
|
"target_commitish": "${{ gitea.sha }}",
|
||||||
"name": "${{ github.ref }}",
|
"name": "${{ gitea.ref }}",
|
||||||
"body": "Release description",
|
"body": "Release description",
|
||||||
"draft": true,
|
"draft": true,
|
||||||
"prerelease": false
|
"prerelease": false
|
||||||
}' \
|
}' \
|
||||||
"${{ vars.GIT_URL }}/api/v1/repos/${{ github.repository }}/releases")
|
"${{ vars.GIT_URL }}/api/v1/repos/${{ gitea.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" \
|
||||||
"${{ 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 }}" \
|
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" \
|
||||||
"${{ 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
|
else
|
||||||
echo "Failed to create release. Aborting deployment."
|
echo "Failed to create release. Aborting deployment."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user