From 9c2ff4511af0a8ad0bc11e07b8d8d45920b02872 Mon Sep 17 00:00:00 2001 From: sunshinesmilelk Date: Tue, 19 Nov 2024 00:02:20 +0800 Subject: [PATCH] chore: add discord release action --- .github/workflows/discord-release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/discord-release.yml diff --git a/.github/workflows/discord-release.yml b/.github/workflows/discord-release.yml new file mode 100644 index 00000000..355406dc --- /dev/null +++ b/.github/workflows/discord-release.yml @@ -0,0 +1,20 @@ +name: Post Release To Discord + +on: + release: + types: [published] + +jobs: + github-releases-to-discord: + runs-on: ubuntu-latest + steps: + - name: ⬇️ Checkout repo + uses: actions/checkout@v4 + + - name: 📧 Post to Discord + uses: SethCohen/github-releases-to-discord@v1.15.0 + with: + webhook_url: ${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }} + color: '2105893' + username: 'GitHub' + avatar_url: 'https://libro.difizen.net/libro.svg'