This commit is contained in:
Clément CHABANNE 2024-06-09 03:05:12 +02:00
parent 80777e3f4d
commit c441972d0d

View File

@ -1,7 +1,12 @@
name: Go2ticket auto deployement
run-name: ${{ gitea.actor }} is testing CI/CD Actions 🚀
on: [push]
on:
push:
branches:
- 'master'
- 'dev'
tags:
- 'v*.*.*'
jobs:
Go2ticket:
runs-on: ubuntu-latest
@ -34,7 +39,8 @@ jobs:
ls -l go2ticket-*
- name: Deploy release
if: gitea.ref == 'refs/heads/master'
if: if: startsWith(gitea.ref, 'refs/tags/')
run: |
echo "Deploying artifacts on Gitea server"
RESPONSE=$(curl -X POST -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \
@ -56,7 +62,7 @@ jobs:
if [ -n "$RELEASE_ID" ]; then
curl -X POST -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \
-H "Content-Type: multipart/form-data" \
-F "attachment=@go2ticket-firefox.xpi" \
-F "att achment=@go2ticket-firefox.xpi" \
"${{ vars.GIT_URL }}/api/v1/repos/${{ gitea.repository }}/releases/${RELEASE_ID}/assets"
curl -X POST -H "Authorization: token ${{ secrets.GIT_TOKEN }}" \