mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
build: Fix beta check
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -21,7 +21,7 @@ val projectVersion = project.version as String
|
||||
|
||||
modrinth {
|
||||
projectId.set("QzooIsZI")
|
||||
versionType.set(if (projectVersion.contains("+beta.")) "beta" else "release")
|
||||
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"))
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ hangarPublish.publications.register("plugin") {
|
||||
version.set(projectVersion)
|
||||
owner.set("Vicarious")
|
||||
slug.set("Carbon")
|
||||
channel.set(if (projectVersion.contains("+beta.")) "Beta" else "Release")
|
||||
channel.set(if (projectVersion.contains("-beta.")) "Beta" else "Release")
|
||||
changelog.set(releaseNotes)
|
||||
apiKey.set(providers.environmentVariable("HANGAR_UPLOAD_KEY"))
|
||||
platforms.register(Platforms.PAPER) {
|
||||
|
||||
Reference in new issue
Block a user