From a5618726bf7af1c38b87d11f8dd5cdd8fd1ff693 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Sun, 10 Jul 2022 09:01:20 +0000 Subject: [PATCH] update publishing script --- .space.kts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.space.kts b/.space.kts index fd773a6..c1a3329 100644 --- a/.space.kts +++ b/.space.kts @@ -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") + } + } }