mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
build: setup modrinth publishing
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user