Skip to content

Commit

Permalink
Add release webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
cheese3660 authored Feb 9, 2024
1 parent ae661c7 commit e31556b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release_nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF'
cat ./content.md
echo EOF
} >> "$GITHUB_ENV"
- name: Post discord server announcement
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
content: ${{ env.disord_message }}
username: "Space Warp"
avatar-url: https://spacewarp.org/assets/swlogo.svg

0 comments on commit e31556b

Please sign in to comment.