diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 4202d73..5c102c7 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -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