Dry run fails the build when the release already exists; fix

Reverted to stop the snapshot build failing
This commit is contained in:
comp500 2022-07-16 20:40:10 +01:00
parent f7257f4266
commit 6f0beac1a1

View File

@ -130,12 +130,11 @@ githubRelease {
draft(true)
token(findProperty("github.token") as String?)
releaseAssets(layout.buildDirectory.dir("dist").map { it.file("packwiz-installer.jar") }.get())
dryRun(project.findProperty("release") != "true")
}
tasks.githubRelease {
dependsOn(copyJar)
enabled = project.hasProperty("github.token")
enabled = project.hasProperty("github.token") && project.findProperty("release") == "true"
}
tasks.publish {