infra: add notification to deploy action
All checks were successful
Deploy Blog / deploy (push) Successful in 1m35s

This commit is contained in:
Thomas Bishop 2025-11-18 17:59:20 +00:00
parent 003c994d7a
commit 8a47a293e8

View file

@ -20,3 +20,18 @@ jobs:
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{ vars.VPS_DEPLOY_USER }} "bash -c 'rm -rf /var/www/systemsobscure.blog/*'"
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r dist/* ${{ vars.VPS_DEPLOY_USER }}:/var/www/systemsobscure.blog/
rm /tmp/ssh_key
- name: Notify success
if: success()
run: |
curl -u thomas:${{ secrets.NTFY_PASSWORD }} \
-H "Tags: Forgejo Runner" \
-d "🟩 systemsobscure.blog successfully deployed" \
https://ntfy.systemsobscure.net/test
- name: Notify failure
if: failure()
run: |
curl -u thomas:${{ secrets.NTFY_PASSWORD }} \
-H "Tags: Forgejo Runner" \
-d "🟥 systemsobscure.blog deployment failed. See Forgejo Action logs." \
https://ntfy.systemsobscure.net/test