mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-02 07:56:48 +00:00
fix release task for sentry
This commit is contained in:
parent
a88d389e0f
commit
c0d17742e8
@ -134,7 +134,7 @@ tasks {
|
|||||||
|
|
||||||
val cli = file("sentry-cli.exe")
|
val cli = file("sentry-cli.exe")
|
||||||
register<Download>("downloadCli") {
|
register<Download>("downloadCli") {
|
||||||
group = "sentry"
|
group = "io.sentry"
|
||||||
src("https://release-registry.services.sentry.io/apps/sentry-cli/latest?response=download&arch=x86_64&platform=${System.getProperty("os.name")}&package=sentry-cli")
|
src("https://release-registry.services.sentry.io/apps/sentry-cli/latest?response=download&arch=x86_64&platform=${System.getProperty("os.name")}&package=sentry-cli")
|
||||||
dest(cli)
|
dest(cli)
|
||||||
|
|
||||||
@ -144,28 +144,28 @@ tasks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
register("release") {
|
register("release") {
|
||||||
|
group = "io.sentry"
|
||||||
dependsOn("downloadCli")
|
dependsOn("downloadCli")
|
||||||
doLast {
|
doLast {
|
||||||
val authToken = project.property("sentry.auth.token") ?: System.getenv("SENTRY_AUTH_TOKEN")
|
val authToken = project.property("sentry.auth.token") ?: System.getenv("SENTRY_AUTH_TOKEN")
|
||||||
val org = "volmit-software"
|
val org = "volmit-software"
|
||||||
val projectName = "iris"
|
val projectName = "iris"
|
||||||
providers.exec {
|
exec(cli, "releases", "new", "--auth-token", authToken, "-o", org, "-p", projectName, version)
|
||||||
executable(cli)
|
exec(cli, "releases", "set-commits", "--auth-token", authToken, "-o", org, "-p", projectName, version, "--auto", "--ignore-missing")
|
||||||
args("releases", "new", "--auth-token", authToken, "-o", org, "-p", projectName, version)
|
exec(cli, "releases", "finalize", "--auth-token", authToken, "-o", org, "-p", projectName, version)
|
||||||
}.result.get()
|
|
||||||
providers.exec {
|
|
||||||
executable(cli)
|
|
||||||
args("releases", "set-commits", "--auth-token", authToken, "-o", org, "-p", projectName, version, "--auto")
|
|
||||||
}.result.get()
|
|
||||||
providers.exec {
|
|
||||||
executable(cli)
|
|
||||||
args("releases", "finalize", "--auth-token", authToken, "-o", org, "-p", projectName, version)
|
|
||||||
}.result.get()
|
|
||||||
cli.delete()
|
cli.delete()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun exec(vararg command: Any) {
|
||||||
|
val p = ProcessBuilder(command.map { it.toString() })
|
||||||
|
.start()
|
||||||
|
p.inputStream.reader().useLines { it.forEach(::println) }
|
||||||
|
p.errorStream.reader().useLines { it.forEach(::println) }
|
||||||
|
p.waitFor()
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":core"))
|
implementation(project(":core"))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user