diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 4edf26f..41f05c9 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -19,3 +19,19 @@ jobs: ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{ vars.VPS_DEPLOY_USER }} "bash -c 'cd /var/www/eolas-app && rm -rf * .[^.]*'" scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r dist/* ${{ vars.VPS_DEPLOY_USER }}:/var/www/eolas-app/ rm /tmp/ssh_key + + - name: Notify success + if: success() + run: | + curl -u thomas:${{ secrets.NTFY_PASSWORD }} \ + -H "Tags: Forgejo Runner" \ + -d "🟩 eolas-app successfully deployed" \ + https://ntfy.systemsobscure.net/eolas + + - name: Notify failure + if: failure() + run: | + curl -u thomas:${{ secrets.NTFY_PASSWORD }} \ + -H "Tags: Forgejo Runner" \ + -d "🟥 An error occurred deploying eolas-app. See Forgejo Action logs." \ + https://ntfy.systemsobscure.net/eolas