Skip to content

Commit 444d96b

Browse files
committed
build: change modrinth version format
1 parent 3fcd11e commit 444d96b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ for (module in modrinthModules) {
206206

207207
token.set(modrinthApiKey)
208208
projectId.set("${property("modrinthProjectID")}")
209-
versionNumber.set((if (isRelease) versionString else publishVersion)/* + "-${module.name.lowercase()}"*/)
209+
versionNumber.set((if (isRelease) versionString else publishVersion.replace("-build.", "-b").replace("-SNAPSHOT", "-beta")) + "-${module.name.lowercase()}")
210210
versionType.set(System.getenv("MODRINTH_BUILD_CHANNEL") ?: "beta")
211211
uploadFile.set(project(":sayanvanish-bukkit").tasks.shadowJar.flatMap { it.archiveFile })
212212
when (module) {

0 commit comments

Comments
 (0)