Skip to content

Commit

Permalink
Prerelease by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Krystian Panek committed Dec 8, 2020
1 parent 5e4c86a commit ee2d9cd
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ githubRelease {
tagName(project.version.toString())
releaseName(project.version.toString())
draft((findProperty("github.draft") ?: "false").toString().toBoolean())
prerelease((findProperty("github.prerelease") ?: "false").toString().toBoolean())
overwrite((findProperty("github.override") ?: "true").toString().toBoolean())

gradle.projectsEvaluated {
Expand All @@ -66,19 +65,24 @@ githubRelease {
).map { rootProject.tasks.getByPath(it) })
}

body { """
|# What's new
|
|TBD
|
|# Upgrade notes
|
|Nothing to do.
|
|# Contributions
|
|None.
""".trimMargin()
val prerelease = (findProperty("github.prerelease") ?: "true").toString().toBoolean()
if (prerelease) {
prerelease(true)
} else {
body { """
|# What's new
|
|TBD
|
|# Upgrade notes
|
|Nothing to do.
|
|# Contributions
|
|None.
""".trimMargin()
}
}
}

Expand Down

0 comments on commit ee2d9cd

Please sign in to comment.