We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfec63b commit 8ebfcb5Copy full SHA for 8ebfcb5
.github/workflows/discord-release.yml
@@ -0,0 +1,23 @@
1
+name: Discord Release Notification
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ notify:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Send Discord notification
12
+ run: |
13
+ curl -X POST \
14
+ -H "Content-Type: application/json" \
15
+ -d '{
16
+ "embeds": [{
17
+ "title": "🚀 New Release: '"${{ github.event.release.tag_name }}"'",
18
+ "url": "'"${{ github.event.release.html_url }}"'",
19
+ "description": "'"${{ github.event.release.name }}"'",
20
+ "color": 5814783
21
+ }]
22
+ }' \
23
+ ${{ secrets.DISCORD_RELEASES_WEBHOOK_URL }}
0 commit comments