@@ -2,13 +2,13 @@ amends "@pkl.impl.ghactions/PklCI.pkl"
22
33import "@gha/Workflow.pkl"
44
5+ import "jobs/BuildJavaExecutableJob.pkl"
56import "jobs/BuildNativeJob.pkl"
67import "jobs/DeployJob.pkl"
78import "jobs/GithubRelease.pkl"
89import "jobs/GradleJob.pkl"
910import "jobs/PklJob.pkl"
1011import "jobs/SimpleGradleJob.pkl"
11- import "jobs/BuildJavaExecutableJob.pkl"
1212
1313triggerDocsBuild = "both"
1414
@@ -132,7 +132,10 @@ prb {
132132 }
133133 }
134134 `if` =
135- tags.toList().map((it) -> "contains(github.event.pull_request.body, '\(it) ')" ).join(" || " )
135+ tags
136+ .toList()
137+ .map((it) -> "contains(github.event.pull_request.body, '\(it) ')" )
138+ .join(" || " )
136139 }
137140 }
138141 }
@@ -152,7 +155,14 @@ build {
152155main {
153156 jobs =
154157 (buildAndTestJobs) {
155- ["deploy-snapshot" ] = (new DeployJob { command = "publishToSonatype" }) {
158+ ["deploy-snapshot" ] = (
159+ new DeployJob {
160+ extraGradleArgs {
161+ "--no-parallel"
162+ }
163+ command = "publishToSonatype"
164+ }
165+ ) {
156166 needs = buildAndTestJobs.keys.toListing()
157167 }
158168 } |> toWorkflowJobs
@@ -163,14 +173,15 @@ releaseBranch {
163173}
164174
165175release {
166- jobs = (releaseJobs) {
167- ["deploy-release" ] = (
168- new DeployJob { command = "publishToSonatype closeAndReleaseSonatypeStagingRepository" }
169- ) {
170- needs = releaseJobs.keys.toListing()
171- }
172- ["github-release" ] = (new GithubRelease {}) {
173- needs = "deploy-release"
174- }
175- } |> toWorkflowJobs
176+ jobs =
177+ (releaseJobs) {
178+ ["deploy-release" ] = (
179+ new DeployJob { command = "publishToSonatype closeAndReleaseSonatypeStagingRepository" }
180+ ) {
181+ needs = releaseJobs.keys.toListing()
182+ }
183+ ["github-release" ] = (new GithubRelease {}) {
184+ needs = "deploy-release"
185+ }
186+ } |> toWorkflowJobs
176187}
0 commit comments