Просмотр исходного кода

docs: adding action to notify discord

Jay V 7 месяцев назад
Родитель
Сommit
70c16c4c95
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      .github/workflows/notify-discord.yml

+ 14 - 0
.github/workflows/notify-discord.yml

@@ -0,0 +1,14 @@
+name: Notify Discord on Release
+
+on:
+  release:
+    types: [published]   # fires only when a release is published
+
+jobs:
+  notify:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Send nicely-formatted embed to Discord
+        uses: SethCohen/github-releases-to-discord@v1
+        with:
+          webhook-url: ${{ secrets.DISCORD_WEBHOOK }}