Skip to content

Commit 3f4e0f5

Browse files
authored
Update on-release.yml
1 parent 22d1e45 commit 3f4e0f5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/on-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
echo "zip=$(ls -1 dist/PatchManager-*.zip | head -n 1)" >> $GITHUB_ENV
3737
echo "upload_url=$(wget -qO- https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq '.[0].upload_url' | tr -d \")" >> $GITHUB_ENV
3838
echo "changelog=$(wget -qO- https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq '.[0].body' | tr -d \" | jq -Rr @uri)" >> $GITHUB_ENV
39+
echo "${{ env.changelog }}" > ./changelog.md
3940
4041
- name: Check if version exists
4142
id: check-version
@@ -86,7 +87,7 @@ jobs:
8687
8788
- name: Update mod on spacedock
8889
run: |
89-
result=$(curl -b ./cookies -F "version=${{ env.version }}" -F "changelog=${{ env.changelog }}" -F "game-version=${{ env.LATEST_GAME_VERSION }}" -F "notify-followers=yes" -F "zipball=@${{ env.zip }}" "https://spacedock.info/api/mod/${{ env.MOD_ID }}/update")
90+
result=$(curl -b ./cookies -F "version=${{ env.version }}" -F "changelog=@./changelog.md" -F "game-version=${{ env.LATEST_GAME_VERSION }}" -F "notify-followers=yes" -F "zipball=@${{ env.zip }}" "https://spacedock.info/api/mod/${{ env.MOD_ID }}/update")
9091
errored=$(echo $result | jq .error)
9192
if [ "$errored" == "true" ]; then
9293
echo "Upload to space dock errored: $(echo $result | jq .reason)"

0 commit comments

Comments
 (0)