mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-28 11:29:11 +00:00
Update workflow
* Separate build and pr build workflows * Expose build number env var to Leaf
This commit is contained in:
@@ -169,7 +169,15 @@
|
||||
}
|
||||
|
||||
// Gale start - hide irrelevant compilation warnings
|
||||
@@ -226,14 +_,14 @@
|
||||
@@ -219,21 +_,21 @@
|
||||
val git = Git(rootProject.layout.projectDirectory.path)
|
||||
val mcVersion = rootProject.providers.gradleProperty("mcVersion").get()
|
||||
val build = System.getenv("BUILD_NUMBER") ?: null
|
||||
- val buildTime = Instant.now() // Gale - branding changes - we don't have ci yet
|
||||
+ val buildTime = Instant.now() // Leaf - Rebrand - Always use current for build time
|
||||
val gitHash = git.exec(providers, "rev-parse", "--short=7", "HEAD").get().trim()
|
||||
val implementationVersion = "$mcVersion-${build ?: "DEV"}-$gitHash"
|
||||
val date = git.exec(providers, "show", "-s", "--format=%ci", gitHash).get().trim()
|
||||
val gitBranch = git.exec(providers, "rev-parse", "--abbrev-ref", "HEAD").get().trim()
|
||||
attributes(
|
||||
"Main-Class" to "org.bukkit.craftbukkit.Main",
|
||||
|
||||
Reference in New Issue
Block a user