mirror of
https://github.com/GeyserMC/Rainbow.git
synced 2025-12-19 14:59:16 +00:00
Add build number to version in FMJ
This commit is contained in:
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@@ -37,6 +37,7 @@ jobs:
|
||||
if: ${{ success() && github.repository == 'GeyserMC/Rainbow' && github.ref_name == 'master' }}
|
||||
run: ./gradlew publish
|
||||
env:
|
||||
BUILD_NUMBER: ${{ steps.release-info.outputs.curentRelease }}
|
||||
ORG_GRADLE_PROJECT_geysermcUsername: ${{ vars.DEPLOY_USER }}
|
||||
ORG_GRADLE_PROJECT_geysermcPassword: ${{ secrets.DEPLOY_PASS }}
|
||||
|
||||
|
||||
@@ -8,6 +8,9 @@ group = properties["maven_group"]!! as String
|
||||
val archivesBaseName = properties["archives_base_name"]!! as String
|
||||
val targetJavaVersion = 21
|
||||
|
||||
val buildNumber = System.getenv()["BUILD_NUMBER"]?: "DEV"
|
||||
val fmjVersion = "$version-$buildNumber"
|
||||
|
||||
base {
|
||||
archivesName = archivesBaseName
|
||||
}
|
||||
@@ -42,7 +45,7 @@ dependencies {
|
||||
|
||||
tasks {
|
||||
processResources {
|
||||
inputs.property("version", version)
|
||||
inputs.property("version", fmjVersion)
|
||||
inputs.property("supported_versions", libs.versions.minecraft.supported.get())
|
||||
inputs.property("loader_version", libs.versions.fabric.loader.get())
|
||||
filteringCharset = "UTF-8"
|
||||
@@ -50,7 +53,7 @@ tasks {
|
||||
filesMatching("fabric.mod.json") {
|
||||
expand(
|
||||
mapOf(
|
||||
"version" to version,
|
||||
"version" to fmjVersion,
|
||||
"supported_versions" to libs.versions.minecraft.supported.get(),
|
||||
"loader_version" to libs.versions.fabric.loader.get()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user