From 90a27e76ba4a4b918087657ff27668768ad9ee10 Mon Sep 17 00:00:00 2001 From: Shaharia Azam Date: Sun, 6 Apr 2025 16:40:26 +0200 Subject: [PATCH] Add Discord notification to release workflow 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. --- .github/workflows/release.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aaa0c2b..1c0bc64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,4 +37,23 @@ jobs: upload_url: ${{ github.event.release.upload_url }} asset_path: ./dist.zip asset_name: dist.zip - asset_content_type: application/zip \ No newline at end of file + asset_content_type: application/zip + + - name: Send Discord notification + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + uses: Ilshidur/action-discord@master + with: + args: | + 🚀 **New Release Available!** 🚀 + + Repository: **${{ github.repository }}** + Version: **${{ github.event.release.tag_name }}** + + ${{ github.event.release.name }} + + ${{ github.event.release.body }} + + 📥 [View Release Details](${{ github.event.release.html_url }}) + + Thank you for using our project! ✨