From e31556b65f86225cbc1e8f5b39a97b3da6fbc3f5 Mon Sep 17 00:00:00 2001 From: cheese3660 Date: Fri, 9 Feb 2024 08:14:35 -0500 Subject: [PATCH] Add release webhook --- .github/workflows/release_nuget.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/release_nuget.yml b/.github/workflows/release_nuget.yml index 45e1dc2..2b18a39 100644 --- a/.github/workflows/release_nuget.yml +++ b/.github/workflows/release_nuget.yml @@ -92,3 +92,23 @@ jobs: version: ${{ env.version }} swinfo_path: 'plugin_template/BepInEx/plugins/SpaceWarp/swinfo.json' changelog: ./changelog.md + + - name: Prepare content + shell: bash + run: | + echo -e "## SpaceWarp v${version}\n" > ./content.md + cat ./changelog.md >> ./content.md + { + echo 'discord_message<> "$GITHUB_ENV" + + - name: Post discord server announcement + uses: tsickert/discord-webhook@v5.3.0 + with: + webhook-url: ${{ secrets.DISCORD_WEBHOOK }} + content: ${{ env.disord_message }} + username: "Space Warp" + avatar-url: https://spacewarp.org/assets/swlogo.svg +