Skip to content

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
NotRyken committed Jan 5, 2025
1 parent d264833 commit 11c49a7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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(","))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 11c49a7

Please sign in to comment.