build: setup modrinth publishing

This commit is contained in:
Jason Penilla committed 2023-04-15 14:23:49 -07:00
1 parent d842b5aa70
commit 11fd08491b
4 files changed
+25

No files matched your search

@@ -1,5 +1,6 @@
plugins {
id("carbon.base-conventions")
id("com.modrinth.minotaur")
}
val platformExtension = extensions.create<CarbonPlatformExtension>("carbonPlatform")
@@ -16,6 +17,18 @@ tasks {
}
}
val projectVersion = project.version as String
modrinth {
projectId.set("QzooIsZI")
versionType.set(if (projectVersion.contains("+beta.")) "beta" else "release")
file.set(platformExtension.jarTask.flatMap { it.archiveFile })
changelog.set(releaseNotes)
token.set(providers.environmentVariable("MODRINTH_TOKEN"))
required.project("luckperms")
gameVersions.add("1.19.4")
}
//val projectVersion = version as String
//if (projectVersion.endsWith("-SNAPSHOT")) {
// // Add git commit hash to version for platforms