Update CI/CD
All checks were successful
Go2ticket auto deployement / Go2ticket (push) Successful in 19s

This commit is contained in:
Clément CHABANNE 2024-06-09 12:01:03 +02:00
parent 1a986b527c
commit fadbc5f0be

View File

@ -37,7 +37,11 @@ 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: Generate release notes
id: release_notes
run: |
NOTES=$(git log -1 --pretty=%B)
echo "release_notes=${NOTES}" >> $GITHUB_ENV
- name: Deploy release
if: startsWith(gitea.ref, 'refs/tags/')
@ -48,8 +52,8 @@ jobs:
-d '{
"tag_name": "${{ gitea.ref }}",
"target_commitish": "${{ gitea.sha }}",
"name": "${{ gitea.ref }}",
"body": "Release description",
"name": "$(git for-each-ref --format='%(contents)' refs/tags/v1.0.0 | grep .)",
"body": "Release description :\n ${{ env.release_notes }}",
"draft": true,
"prerelease": false
}' \