Browse Source

feat(github): add GitHub Actions workflow to notify Discord on release events for better communication with the team

Mathias 1 month ago
parent
commit
8e804471d6
1 changed files with 19 additions and 0 deletions
  1. 19 0
      .github/workflows/notify-discord.yml

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

@@ -0,0 +1,19 @@
+name: Notify Discord on Release
+
+on:
+  release:
+    types: [published]
+
+jobs:
+  discordNotification:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Send Discord message
+        uses: Ilshidur/action-discord@master
+        with:
+          webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK }}
+          message: |
+            🚀 New release: **${{ github.event.release.name }}**
+            ${{ github.event.release.html_url }}
+
+            ${{ github.event.release.body }}