ci: tried to fix ci when building a release

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2024-05-08 03:08:50 +02:00
parent b63c45263d
commit 47e5fc5adf
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

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