Update forgejo release workflow
Some checks failed
/ build-artifacts (push) Failing after 56s
/ deploy (push) Has been skipped

This commit is contained in:
Tobias Reisinger 2026-11-09 00:22:35 +01:00
commit d89aded760
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -32,17 +32,11 @@ jobs:
runs-on: docker
needs: build-artifacts
steps:
- name: Prepare deploy script
run: |
cat <<EOF > script.sh
cd /var/www/html
bin/gpm direct-install -y \
"https://git.serguzim.me/serguzim/reitanlage-oranienburg/releases/download/${{ github.ref_name }}/reitanlage-oranienburg-${{ github.ref_name }}.zip"
- id: deploy
- id: Run deploy webhook
run: |
curl -vLX POST \
-H "Content-Type: application/json" \
-H "X-Webhook-Token: ${{ secrets.DEPLOY_WEBHOOK_TOKEN }}" \
-d "{\"data\": \"$(base64 -w0 script.sh)\"}" \
https://deploy.serguzim.me/hooks/deploy-reitanlage_oranienburg
-H "X-Auth-Token: ${{ secrets.DEPLOY_WEBHOOK_TOKEN }}" \
-d '{"theme_version": "${{ github.ref_name }}"}' \
"${{ secrets.DEPLOY_WEBHOOK_URL }}"
shell: bash