mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-19 13:06:30 +02:00
Fix dist jar path, do dry run when not releasing
This commit is contained in:
parent
9c475cba85
commit
f7257f4266
@ -115,7 +115,7 @@ val copyJar by tasks.registering(Copy::class) {
|
|||||||
from(shrinkJar)
|
from(shrinkJar)
|
||||||
rename("packwiz-installer-(.*)\\.jar", "packwiz-installer.jar")
|
rename("packwiz-installer-(.*)\\.jar", "packwiz-installer.jar")
|
||||||
into(layout.buildDirectory.dir("dist"))
|
into(layout.buildDirectory.dir("dist"))
|
||||||
outputs.file(layout.buildDirectory.dir("dist").map { file("packwiz-installer.jar") })
|
outputs.file(layout.buildDirectory.dir("dist").map { it.file("packwiz-installer.jar") })
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.build {
|
tasks.build {
|
||||||
@ -129,12 +129,13 @@ githubRelease {
|
|||||||
releaseName("Release ${project.version}")
|
releaseName("Release ${project.version}")
|
||||||
draft(true)
|
draft(true)
|
||||||
token(findProperty("github.token") as String?)
|
token(findProperty("github.token") as String?)
|
||||||
releaseAssets(layout.buildDirectory.dir("dist").map { file("packwiz-installer.jar") })
|
releaseAssets(layout.buildDirectory.dir("dist").map { it.file("packwiz-installer.jar") }.get())
|
||||||
|
dryRun(project.findProperty("release") != "true")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.githubRelease {
|
tasks.githubRelease {
|
||||||
dependsOn(copyJar)
|
dependsOn(copyJar)
|
||||||
enabled = project.hasProperty("github.token") && project.findProperty("release") == "true"
|
enabled = project.hasProperty("github.token")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.publish {
|
tasks.publish {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user