Skip to content

Commit f0c991b

Browse files
authored
Forum post, and hopefully github post actions
1 parent 940982a commit f0c991b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/on-release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,35 @@ jobs:
7676
version: ${{ env.version }}
7777
zipball: ${{ env.zip }}
7878
changelog: ./changelog.md
79+
80+
- name: Update mod topic
81+
uses: Kerbalight/ksp2-forum-post-action@latest
82+
with:
83+
username: ${{ secrets.FORUM_USER }}
84+
password: ${{ secrets.FORUM_PASSWORD }}
85+
forum_topic_url: https://forum.kerbalspaceprogram.com/topic/221179-093-patch-manager/
86+
forum_topic_title: '[{version}] Patch Manager'
87+
spacedock_url: https://spacedock.info/mod/3482/Patch%20Manager
88+
version: ${{ env.version }}
89+
swinfo_path: 'plugin_template/swinfo.json'
90+
changelog: ./changelog.md
91+
92+
- name: Prepare content for discord
93+
shell: bash
94+
run: |
95+
echo -e "## Release v${version}\n" > ./content.md
96+
cat ./changelog.md >> ./content.md
97+
{
98+
echo 'discord_message<<EOF'
99+
cat ./content.md
100+
echo EOF
101+
} >> "$GITHUB_ENV"
102+
103+
- name: Publish update to Discord
104+
uses: tsickert/[email protected]
105+
with:
106+
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
107+
content: ${{ env.discord_message }}
108+
thread-id: '1171826066692776028'
109+
username: "Patch Manager"
110+
avatar-url: "https://spacedock.info/content/cheese3660_103715/Patch_Manager/thumb_Patch_Manager-1703507804.jpg"

0 commit comments

Comments
 (0)