From 95714e4b40a82cc731abf7f066d9fe41f4febc91 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Thu, 7 Jul 2022 17:15:51 +0000 Subject: [PATCH] add deployment configuration --- .space.kts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.space.kts b/.space.kts index 288c9ea..80633f7 100644 --- a/.space.kts +++ b/.space.kts @@ -8,6 +8,13 @@ job("Deploy") { env["SPC_USER"] = Secrets("spc-webmaster-user") env["SPC_ID"] = Secrets("spc-webmaster-id") kotlinScript { api -> + api.space().projects.automation.deployments.start( + project = api.projectIdentifier(), + targetIdentifier = TargetIdentifier.Key("spc-site"), + version = "current", + // automatically update deployment status based on a status of a job + syncWithAutomationJob = true + ) api.gradle("uploadDistribution") } }