Skip to content

Commit

Permalink
fix changelogs path
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticdrew committed Mar 11, 2024
1 parent 87b6622 commit dd2bf1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pluginManager.withPlugin("com.modrinth.minotaur") {
modrinth.versionName = "${mod_id}-${minecraft_version}-${project.version}"
modrinth.additionalFiles.add(fairPlayJar)
if (project.file("/build/doc/changelog.html").exists())
modrinth.changelog = project.file("/build/doc/changelog.html").readText(Charsets.UTF_8)
modrinth.changelog = project.file("build/doc/changelog.html").readText(Charsets.UTF_8)
processDocs {
doLast {
// If the task executes, update the changelog in Minotaur as it doesn't support passing in a File
Expand All @@ -153,7 +153,7 @@ tasks.publishCurseforge {
mainArtifact.displayName = "${mod_id}-${minecraft_version}-${project.version}"
mainArtifact.releaseType = curse_release_type
mainArtifact.changelogType = "html"
mainArtifact.changelog = project.file("/build/doc/changelog.html")
mainArtifact.changelog = project.file("build/doc/changelog.html")
mainArtifact.withAdditionalFile(fairPlayJar.get().archiveFile.get().asFile)
mainArtifact.additionalArtifacts.forEach { additionalArtifact ->
additionalArtifact.changelogType = mainArtifact.changelogType
Expand Down

0 comments on commit dd2bf1b

Please sign in to comment.