From ac16107c9de117785c4d9f1f52d0d0a6777f795c Mon Sep 17 00:00:00 2001 From: realRobotix <82544307+realRobotix@users.noreply.github.com> Date: Fri, 27 Sep 2024 00:25:32 +0200 Subject: [PATCH] ci: don't add -dev version suffix for releases --- build.gradle | 5 +++-- gradle.properties | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 301ad4df1..af5db6741 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,8 @@ architectury { } boolean ci = System.getenv("CI") != null ? System.getenv("CI").toBoolean() : false -boolean nightly = ci && (System.getenv("RELEASE") != null ? !System.getenv("RELEASE").toBoolean() : true) +boolean release = System.getenv("RELEASE") != null ? System.getenv("RELEASE").toBoolean() : false +boolean nightly = ci && !release subprojects { apply plugin: "dev.architectury.loom" @@ -51,7 +52,7 @@ subprojects { } String buildNumber = System.getenv("GITHUB_RUN_NUMBER") - version = "${mod_version}+mc.${minecraft_version}-${project.name}${nightly ? "-build.${buildNumber}" : ""}" + version = "${mod_version}${release ? "" : "-dev"}+mc.${minecraft_version}-${project.name}${nightly ? "-build.${buildNumber}" : ""}" publishing { publications { diff --git a/gradle.properties b/gradle.properties index ad8748291..7f83d0645 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ org.gradle.caching=true # Mod Info archives_base_name=createbigcannons group=com.rbasamoyai -mod_version=5.6.0-dev +mod_version=5.6.0 minecraft_version=1.18.2 enabled_platforms=fabric,forge