From 6f0beac1a1dbb984ebbb6e45b99a06d8b2acf7ff Mon Sep 17 00:00:00 2001 From: comp500 Date: Sat, 16 Jul 2022 20:40:10 +0100 Subject: [PATCH] Dry run fails the build when the release already exists; fix Reverted to stop the snapshot build failing --- build.gradle.kts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index e47ef56..4b4a27c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 {