From 13a3394a8c500c1210d9d13a1c03a2cb3cfa5f7e Mon Sep 17 00:00:00 2001 From: moonleay Date: Thu, 9 May 2024 04:54:13 +0200 Subject: [PATCH] ci: updated modrinth publishing Signed-off-by: moonleay --- build.gradle.kts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 74a6c40..8948842 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -213,7 +213,8 @@ publishing { modrinth { token.set(System.getenv("MODRINTH_TOKEN")) // Remember to have the MODRINTH_TOKEN environment variable set or else this will fail - just make sure it stays private! projectId.set(modId) // This can be the project ID or the slug. Either will work! - versionNumber.set("$modName ${System.getenv(mavenVersion)} for $minecraftVersion") // You don't need to set this manually. Will fail if Modrinth has this version already + versionNumber.set(mavenVersion) // You don't need to set this manually. Will fail if Modrinth has this version already + versionName.set("$modName $mavenVersion for $minecraftVersion") versionType.set("alpha") // This is the default -- can also be `beta` or `alpha` uploadFile.set(tasks.remapJar) // With Loom, this MUST be set to `remapJar` instead of `jar`! gameVersions.addAll(listOf(project.ext["minecraft.version"] as String)) // Must be an array, even with only one version