Skip to content

Commit

Permalink
Fix Changelog formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
2No2Name committed Jan 17, 2025
1 parent ad5f04f commit 1369289
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ jobs:
run: |
sed -i 's/_ReleaseTag_/mc${{ env.MINECRAFT_VERSION }}-${{ env.MOD_VERSION }}/g' CHANGELOG.md
sed -i 's/_MCVersion_/${{ env.MINECRAFT_VERSION }}/g' CHANGELOG.md
sed -i 's/_LithiumVersion_/${{ env.MOD_VERSION }}/g' CHANGELOG.md
sed -i 's/_LithiumVersion_/${{ env.MOD_VERSION }}/g' CHANGELOG.md
- name: Trim CHANGELOG.md
run: |
trimmed_changelog=$(awk '/----------/{flag=1;next}flag' CHANGELOG.md)
echo "$trimmed_changelog" > CHANGELOG.md
- name: Create GitHub Release
id: create_release
Expand Down
5 changes: 1 addition & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ changelog on GitHub, Modrinth and CurseForge.
----------
Lithium _LithiumVersion_ for Minecraft _MCVersion_ adds many new features.

Make sure to take a backup of your world before using the mod and please report any bugs and mod compatibility issues at
the [issue tracker](https://github.com/CaffeineMC/lithium-fabric/issues). You can check
the[description of each optimization](https://github.com/CaffeineMC/lithium/blob/_ReleaseTag_/lithium-mixin-config.md)
and how to disable it when encountering a problem.
Make sure to take a backup of your world before using the mod and please report any bugs and mod compatibility issues at the [issue tracker](https://github.com/CaffeineMC/lithium-fabric/issues). You can check the[description of each optimization](https://github.com/CaffeineMC/lithium/blob/_ReleaseTag_/lithium-mixin-config.md) and how to disable it when encountering a problem.

## Additions
- Some new stuff
Expand Down
2 changes: 1 addition & 1 deletion fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ publishMods {
val mcVersionLithiumVersion = "mc$MINECRAFT_VERSION-$MOD_VERSION"
version = "$mcVersionLithiumVersion-fabric"
file = tasks.remapJar.get().archiveFile
changelog = rootProject.file("CHANGELOG.md").readText().split("----------")[1].trim()
changelog = rootProject.file("CHANGELOG.md").readText().trim()
type = getReleaseType()
modLoaders.add("fabric")
modLoaders.add("quilt")
Expand Down
2 changes: 1 addition & 1 deletion neoforge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ publishMods {
val mcVersionLithiumVersion = "mc$MINECRAFT_VERSION-$MOD_VERSION"
version = "$mcVersionLithiumVersion-neoforge"
file = tasks.jar.get().archiveFile
changelog = rootProject.file("CHANGELOG.md").readText().split("----------")[1].trim()
changelog = rootProject.file("CHANGELOG.md").readText().trim()
type = getReleaseType()
modLoaders.add("neoforge")

Expand Down

0 comments on commit 1369289

Please sign in to comment.