update publishing script

This commit is contained in:
Alexander Nozik 2022-07-10 09:01:20 +00:00 committed by Space
parent 7d130dbecb
commit a5618726bf

View File

@ -6,5 +6,16 @@ job("Publish"){
startOn {
gitPush { enabled = false }
}
gradlew("openjdk:11", "publishAllPublicationsToSpaceRepository")
container("openjdk:11") {
kotlinScript { api ->
api.space().projects.automation.deployments.start(
project = api.projectIdentifier(),
targetIdentifier = TargetIdentifier.Key("gradle-tools"),
version = "current",
// automatically update deployment status based on a status of a job
syncWithAutomationJob = true
)
api.gradlew("publishAllPublicationsToSpaceRepository")
}
}
}