mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
pre release specific suffix
This commit is contained in:
parent
4a2a9c5b3a
commit
5c32e819fd
1 changed files with 5 additions and 6 deletions
|
|
@ -27,11 +27,6 @@ version = "1.15.9"
|
|||
val isDevBuild = System.getenv("SMALL_COMMIT_HASH") != null
|
||||
val isPreRelease = System.getenv("IS_GITHUB_PRERELEASE") == "true"
|
||||
|
||||
println("testing env variable")
|
||||
println(System.getenv("IS_GITHUB_PRERELEASE"))
|
||||
println(System.getenv("IS_GITHUB_PRERELEASE") == "true")
|
||||
println(System.getenv("RELEASE_CHANGELOG"))
|
||||
|
||||
val effectiveVersion = "$version" +
|
||||
(if (isDevBuild) "-dev-${System.getenv("SMALL_COMMIT_HASH")!!}" else "")
|
||||
|
||||
|
|
@ -364,7 +359,11 @@ fun changelog(isOnline: Boolean): String {
|
|||
hangarPublish {
|
||||
|
||||
fun HangarPublication.configure(isOnline: Boolean, devChannel: String, releaseChannel: String) {
|
||||
version.set(effectiveVersion + if(isOnline) "" else "-offline")
|
||||
var versionName = effectiveVersion
|
||||
if(isPreRelease) versionName+= "-pre"
|
||||
if(!isOnline) versionName+= "-offline"
|
||||
|
||||
version.set(versionName)
|
||||
channel.set(if (isDevBuild || isPreRelease) devChannel else releaseChannel)
|
||||
|
||||
changelog.set(changelog(isOnline))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue