mirror of
https://codeberg.org/moonleay/Gimbal.git
synced 2025-04-11 08:54:15 +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:
|
on:
|
||||||
push:
|
release:
|
||||||
tags: '*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
|
|
@ -30,8 +30,8 @@ plugins {
|
||||||
id("com.modrinth.minotaur") version "2.+"
|
id("com.modrinth.minotaur") version "2.+"
|
||||||
}
|
}
|
||||||
|
|
||||||
val ver = if ((System.getenv("GITHUB_EVENT_NAME") ?: "local") == "tag") System.getenv("GITHUB_REF_NAME")
|
val ver = if ((System.getenv("GITHUB_REF") ?: "local").startsWith("refs/tags/"))
|
||||||
?: "err" else System.getenv("GIT_SHA_SHORT") ?: "0.0.0"
|
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 mavenVersion = "$ver-${project.ext["minecraft.version"] as String}"
|
||||||
val modId: String by project
|
val modId: String by project
|
||||||
|
|
Loading…
Add table
Reference in a new issue