diff --git a/build.gradle b/build.gradle index a2153f3..440c506 100644 --- a/build.gradle +++ b/build.gradle @@ -43,24 +43,25 @@ subprojects { displayName = "v${mod_version}-${capsLoader(project.name)}" modLoaders.addAll(project.property("release_mod_loaders_${project.name}").split(",")) maxRetries = 5 + dryRun = false github { String token = providers.environmentVariable("GITHUB_TOKEN").getOrNull() - dryRun = (token == null || token.isBlank()) + dryRun = (dryRun || token == null || token.isBlank()) accessToken = token repository = github_repo commitish = grgitService.service.get().grgit.branch.current().name - tagName = "v${mod_version}-${capsLoader(project.name)}" + tagName = "v${mod_version}" additionalFiles.from(sourcesJar.archiveFile) String versions = "## Minecraft Versions\n" project.property("release_game_versions_${project.name}").split(",").each { versions = "${versions}\n- ${it}" } - changelog = versions + "## Changelog\n\n" + versionChangelog() + changelog = versions + "\n## Changelog\n\n" + versionChangelog() } modrinth { String token = providers.environmentVariable("MODRINTH_TOKEN").getOrNull() - dryRun = (token == null || token.isBlank()) + dryRun = (dryRun || token == null || token.isBlank()) accessToken = token projectId = modrinth_id minecraftVersions.addAll(project.property("release_game_versions_${project.name}").split(",")) @@ -90,7 +91,7 @@ subprojects { } curseforge { String token = providers.environmentVariable("CURSEFORGE_TOKEN").getOrNull() - dryRun = (token == null || token.isBlank()) + dryRun = (dryRun || token == null || token.isBlank()) accessToken = token projectId = curseforge_id projectSlug = curseforge_slug