From c10149ba5502714070f92e367497b258b4d737d6 Mon Sep 17 00:00:00 2001 From: altrisi Date: Sat, 28 May 2022 13:07:08 +0200 Subject: [PATCH] Publish changelogs to Discord when releasing (#1428) Co-authored-by: Crec0 <83436716+Crec0@users.noreply.github.com> --- .github/workflows/publish-release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index f50b2b09..fa5337f5 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -113,6 +113,22 @@ jobs: with: name: Maven publishing artifacts for ${{ matrix.branch }} path: publish/carpet/fabric-carpet/ + Publish-To-Discord: + runs-on: ubuntu-latest + needs: [Build-And-Publish] + steps: + - name: Publish to discord + uses: Crec0/announce-n-crosspost@v1 + with: + bot-token: ${{ secrets.DISCORD_BOT_TOKEN }} + channel: '897934715200339999' + content: | + **${{ github.event.release.name }}** has been released! + + ${{ github.event.release.body }} + + Get it on Github Releases: <${{ github.event.release.html_url }}> + Or on CurseForge Merge-Scarpet-Docs: runs-on: ubuntu-latest steps: