mirror of
https://github.com/franukis/MCT_release.git
synced 2026-07-16 14:32:34 +00:00
Add Discord release notification workflow
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
name: Discord Release Notification
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
notify:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Send release to Discord
|
||||
run: |
|
||||
curl -H "Content-Type: application/json" \
|
||||
-X POST \
|
||||
-d '{
|
||||
"content": "🚀 **New Release Published!**\n\n**${{ github.event.release.name }}**\n${{ github.event.release.html_url }}"
|
||||
}' \
|
||||
${{ secrets.DISCORD_WEBHOOK }}
|
||||
Reference in New Issue
Block a user