Skip to content

Commit

Permalink
Update GitHub publish info
Browse files Browse the repository at this point in the history
  • Loading branch information
NotRyken committed Nov 11, 2024
1 parent e9c1b8c commit f218e7a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,18 @@ subprojects {
repo = github_repo
tagName = "v${mod_version}"
prerelease = release_type == "alpha" || release_type == "beta"
releaseName = "v${mod_version} (${release_game_versions_fabric})"
releaseName = "v${mod_version}"

String changelog = "\nChangelog\n" + rootProject.file("changelog.md").text
String versions = "MC versions\n"
if (project.hasProperty("release_game_versions_fabric"))
versions = String.format("%s - Fabric: %s\n", versions,
project.property("release_game_versions_fabric"))
if (project.hasProperty("release_game_versions_neoforge"))
versions = String.format("%s - NeoForge: %s\n", versions,
project.property("release_game_versions_neoforge"))
body = versions + changelog

body = rootProject.file("changelog.md").text
targetCommitish = grgitService.service.get().grgit.branch.current().name
overwrite = false
Expand Down

0 comments on commit f218e7a

Please sign in to comment.