Skip to content

Commit 8ebfcb5

Browse files
authored
Create discord-release.yml
1 parent cfec63b commit 8ebfcb5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)