Fix curseforge and modrinth release

This commit is contained in:
33 committed 2022-03-17 11:07:25 +08:00
1 parent c77ac58f6d
commit b0c11d11c6
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ static void provideCurseForge0(Project proj) {
changelogType = "text"
changelog = System.getenv("GIT_COMMIT_DESC") ?: ""
displayName = "${proj.archivesBaseName}-${proj.ext.getShortVersion()}"
releaseType = proj.ext.isSnapshot ? "beta" : "release"
releaseType = proj.ext.isSnapshot() ? "beta" : "release"
it
}
additionalArtifacts = []
+1 -1
View File
@@ -26,7 +26,7 @@ static void provideModrinth0(Project proj) {
versionName = "${proj.archivesBaseName}-${proj.ext.getShortVersion()}"
changelog = System.getenv("GIT_COMMIT_DESC") ?: ""
uploadFile = proj.tasks.jar
versionType = proj.ext.isSnapshot ? VersionType.BETA : VersionType.RELEASE
versionType = proj.ext.isSnapshot() ? VersionType.BETA : VersionType.RELEASE
failSilently = true
detectLoaders = false