ci: added release ci

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2024-05-08 02:00:37 +02:00
parent 0d775f1252
commit 8d8e8bec1c
Signed by: moonleay
GPG key ID: 82667543CCD715FB
3 changed files with 53 additions and 6 deletions

View file

@ -30,7 +30,8 @@ plugins {
id("com.modrinth.minotaur") version "2.+"
}
val ver = System.getenv("GIT_SHA_SHORT") ?: "0.0.0"
val ver = if ((System.getenv("GITHUB_EVENT_NAME") ?: "local") == "release") System.getenv("GITHUB_REF_NAME")
?: "err" else System.getenv("GIT_SHA_SHORT") ?: "0.0.0"
val mavenVersion = "$ver-${project.ext["minecraft.version"] as String}"
val modId: String by project