File tree 1 file changed +18
-14
lines changed
1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ githubRelease {
52
52
tagName(project.version.toString())
53
53
releaseName(project.version.toString())
54
54
draft((findProperty(" github.draft" ) ? : " false" ).toString().toBoolean())
55
- prerelease((findProperty(" github.prerelease" ) ? : " false" ).toString().toBoolean())
56
55
overwrite((findProperty(" github.override" ) ? : " true" ).toString().toBoolean())
57
56
58
57
gradle.projectsEvaluated {
@@ -66,19 +65,24 @@ githubRelease {
66
65
).map { rootProject.tasks.getByPath(it) })
67
66
}
68
67
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
+ }
82
86
}
83
87
}
84
88
You can’t perform that action at this time.
0 commit comments