Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed Jan 24, 2024
1 parent 4afdc5d commit c636203
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ bin/
# fabric

run/

# Changelog
/CHANGELOG.md
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ publishing {
}
}

if (System.getenv("MODRINTH_TOKEN")) {
if (System.getenv("MODRINTH_TOKEN") && file("CHANGELOG.md").exists() ) {
apply plugin: "com.modrinth.minotaur"
modrinth {
token = System.getenv("MODRINTH_TOKEN")
Expand All @@ -92,12 +92,12 @@ if (System.getenv("MODRINTH_TOKEN")) {
detectLoaders = false
dependencies {
}
changelog = "Changelog: https://github.com/sisby-folk/starcaller/releases/tag/v" + baseVersion
changelog = rootProject.file("CHANGELOG.md").text + "\n\nChangelog: https://github.com/sisby-folk/$project.name/releases/tag/v$baseVersion"
syncBodyFrom = rootProject.file("README.md").text
}
}

if (System.getenv("GITHUB_TOKEN")) {
if (System.getenv("GITHUB_TOKEN") && file("CHANGELOG.md").exists()) {
apply plugin: "com.github.breadmoirai.github-release"
githubRelease {
token System.getenv("GITHUB_TOKEN")
Expand All @@ -111,6 +111,7 @@ if (System.getenv("GITHUB_TOKEN")) {
releaseAssets remapJar.archiveFile
allowUploadToExisting true
generateReleaseNotes true
body rootProject.file("CHANGELOG.md").text
}
tasks.githubRelease.dependsOn remapJar
}
Expand Down

0 comments on commit c636203

Please sign in to comment.