Skip to content

Commit f5aec72

Browse files
authored
Add Discord notification to release workflow (#25)
Integrated a Discord notification step in the release workflow to announce new releases. Notifications include release details, version, and a link for more information, enhancing visibility and communication.
1 parent f41e298 commit f5aec72

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,23 @@ jobs:
3737
upload_url: ${{ github.event.release.upload_url }}
3838
asset_path: ./dist.zip
3939
asset_name: dist.zip
40-
asset_content_type: application/zip
40+
asset_content_type: application/zip
41+
42+
- name: Send Discord notification
43+
env:
44+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
45+
uses: Ilshidur/action-discord@master
46+
with:
47+
args: |
48+
🚀 **New Release Available!** 🚀
49+
50+
Repository: **${{ github.repository }}**
51+
Version: **${{ github.event.release.tag_name }}**
52+
53+
${{ github.event.release.name }}
54+
55+
${{ github.event.release.body }}
56+
57+
📥 [View Release Details](${{ github.event.release.html_url }})
58+
59+
Thank you for using our project! ✨

0 commit comments

Comments
 (0)