mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix: append commit hash to publishing version for non-default branches
This commit is contained in:
+2
-2
@@ -70,8 +70,8 @@ val Project.projectVersionCode: Int by lazy {
|
||||
|
||||
val Project.publishingVersion by lazy {
|
||||
var version = simpleVersionName
|
||||
if (CI.isCiBuild) {
|
||||
version += "-SNAPSHOT"
|
||||
if (CI.isCiBuild && CI.branchName != "main") {
|
||||
version += "-${CI.commitHash}-SNAPSHOT"
|
||||
}
|
||||
return@lazy version
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user