From f83a5148676f83b53644f6be3589cf7800de8a52 Mon Sep 17 00:00:00 2001 From: Timon Vonk Date: Mon, 23 Sep 2024 22:23:31 +0200 Subject: [PATCH 1/2] Revert "fix(ci): Remove discord publish for now" This reverts commit d433d99e486e5e9f608c7d34b3847ef427b36d16. --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 634d4751..a7396062 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,3 +31,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} GITHUB_REPO: ${{ github.repository }} + - name: Github Releases To Discord + uses: sillyangel/releases-to-discord@v1.0.0 + with: + webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }} + color: "2105893" + username: "Release Changelog" + avatar_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png" From 1dc5e2e83b5c8f130ff178f25cf70e5d8f440197 Mon Sep 17 00:00:00 2001 From: Timon Vonk Date: Mon, 23 Sep 2024 22:25:54 +0200 Subject: [PATCH 2/2] fix(ci): Announce releases to discord --- .github/workflows/discord.yml | 21 +++++++++++++++++++++ .github/workflows/release.yml | 7 ------- 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/discord.yml diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml new file mode 100644 index 00000000..910944c5 --- /dev/null +++ b/.github/workflows/discord.yml @@ -0,0 +1,21 @@ +on: + release: + types: [published] + +jobs: + github-releases-to-discord: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Github Releases To Discord + uses: SethCohen/github-releases-to-discord@v1.13.1 + with: + webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }} + color: "2105893" + username: "Release Changelog" + avatar_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png" + content: "||@everyone||" + footer_title: "Changelog" + footer_icon_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png" + footer_timestamp: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7396062..634d4751 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,10 +31,3 @@ jobs: GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} GITHUB_REPO: ${{ github.repository }} - - name: Github Releases To Discord - uses: sillyangel/releases-to-discord@v1.0.0 - with: - webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }} - color: "2105893" - username: "Release Changelog" - avatar_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png"