Skip to content

Commit ee2d9cd

Browse files
author
Krystian Panek
committed
Prerelease by default
1 parent 5e4c86a commit ee2d9cd

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

build.gradle.kts

+18-14
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ githubRelease {
5252
tagName(project.version.toString())
5353
releaseName(project.version.toString())
5454
draft((findProperty("github.draft") ?: "false").toString().toBoolean())
55-
prerelease((findProperty("github.prerelease") ?: "false").toString().toBoolean())
5655
overwrite((findProperty("github.override") ?: "true").toString().toBoolean())
5756

5857
gradle.projectsEvaluated {
@@ -66,19 +65,24 @@ githubRelease {
6665
).map { rootProject.tasks.getByPath(it) })
6766
}
6867

69-
body { """
70-
|# What's new
71-
|
72-
|TBD
73-
|
74-
|# Upgrade notes
75-
|
76-
|Nothing to do.
77-
|
78-
|# Contributions
79-
|
80-
|None.
81-
""".trimMargin()
68+
val prerelease = (findProperty("github.prerelease") ?: "true").toString().toBoolean()
69+
if (prerelease) {
70+
prerelease(true)
71+
} else {
72+
body { """
73+
|# What's new
74+
|
75+
|TBD
76+
|
77+
|# Upgrade notes
78+
|
79+
|Nothing to do.
80+
|
81+
|# Contributions
82+
|
83+
|None.
84+
""".trimMargin()
85+
}
8286
}
8387
}
8488

0 commit comments

Comments
 (0)