diff --git a/.github/workflows/discord-release.yml b/.github/workflows/discord-release.yml new file mode 100644 index 0000000..e463975 --- /dev/null +++ b/.github/workflows/discord-release.yml @@ -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 }}