mirror of
https://codeberg.org/moonleay/Gimbal.git
synced 2025-04-04 11:44:13 +02:00
ci: hopefully improved
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
47e5fc5adf
commit
d114a4156a
2 changed files with 3 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
|||
on:
|
||||
push:
|
||||
tags: '*'
|
||||
release:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
|
|
@ -30,8 +30,8 @@ plugins {
|
|||
id("com.modrinth.minotaur") version "2.+"
|
||||
}
|
||||
|
||||
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 ver = if ((System.getenv("GITHUB_REF") ?: "local").startsWith("refs/tags/"))
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue