Aneurin Barker Snook 1 год назад
Родитель
Сommit
6ec487bb30
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      .github/workflows/deploy-github-pages.yml

+ 14 - 0
.github/workflows/deploy-github-pages.yml

@@ -51,3 +51,17 @@ jobs:
       - name: Deploy to GitHub Pages
         id: deployment
         uses: actions/deploy-pages@v4
+
+  # https://github.com/annybs/notify-discord
+  notify:
+    name: Notify Discord
+    uses: annybs/notify-discord@develop
+    needs: deploy
+    if: ${{ always() }}
+    with:
+      discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}
+      repository: ${{ github.repository }}
+      result: ${{ needs.deploy.result }}
+      run_id: ${{ github.run_id }}
+      run_number: ${{ github.run_number }}
+      workflow: ${{ github.workflow }}