Skip to content

Commit

Permalink
internal: extract and update SP changelog template (skyrim-multiplaye…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored May 9, 2024
1 parent 448f391 commit a920d31
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/sp-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
echo "SHORTVER=$SHORTVER" >> $GITHUB_ENV
echo "Detect oldver: $OLDVER"
echo "Newver: $NEWVER"
- name: Replace Version In Files
run: |
chmod 777 ${{github.workspace}}/skyrim-platform/src/platform_se/CMakeLists.txt
Expand All @@ -42,10 +43,10 @@ jobs:
run: |
chmod 777 ${{github.workspace}}/docs/release
TRAGET=$(echo "${{github.workspace}}/docs/release/sp-${{ env.SHORTVER }}.md")
echo "# SP ${{ env.NEWVER }} Release Notes"$'\n'$'\n' >> $TRAGET
echo "This document includes changes made since SP ${{ env.OLDVER }}"$'\n'$'\n' >> $TRAGET
echo "WARNING: SP may break your saves. For now, please backup your saves before installing. See https://github.com/skyrim-multiplayer/skymp/issues/796"$'\n'$'\n' >> $TRAGET
echo "SP supports both Steam version of Skyrim SE (1.6.640) and legacy 1.5.97."$'\n' >> $TRAGET
cp ${{github.workspace}}/docs/release/changelog_template.md $TRAGET
sed -i "s/{{NEWVER}}/${{ env.NEWVER }}/g" $TRAGET
sed -i "s/{{OLDVER}}/${{ env.OLDVER }}/g" $TRAGET
for file in `find ${{github.workspace}}/docs/release/dev -type f -name "sp*.md"`
do
content=$(< $file)
Expand All @@ -57,6 +58,7 @@ jobs:
echo $'\n' >> ./temp.txt
fi
done
if [ -e temp.txt ]; then
echo "## Other changes"$'\n' >> $TRAGET
content=$(< ./temp.txt)
Expand Down
9 changes: 9 additions & 0 deletions docs/release/changelog_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SP {{NEWVER}} Release Notes

Thank you for using Skyrim Platform!

This document includes changes made since SP {{OLDVER}}

WARNING: New game required. Update on current save at your own risk. Please backup your savegames.

This document will tell you more about project status: https://github.com/skyrim-multiplayer/skymp/blob/main/skyrim-platform/README.md

0 comments on commit a920d31

Please sign in to comment.