Skip to content

Commit 6c3683c

Browse files
Fix snapshot publishing (#1330)
1 parent cc02b6b commit 6c3683c

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

.github/index.pkl

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ amends "@pkl.impl.ghactions/PklCI.pkl"
22

33
import "@gha/Workflow.pkl"
44

5+
import "jobs/BuildJavaExecutableJob.pkl"
56
import "jobs/BuildNativeJob.pkl"
67
import "jobs/DeployJob.pkl"
78
import "jobs/GithubRelease.pkl"
89
import "jobs/GradleJob.pkl"
910
import "jobs/PklJob.pkl"
1011
import "jobs/SimpleGradleJob.pkl"
11-
import "jobs/BuildJavaExecutableJob.pkl"
1212

1313
triggerDocsBuild = "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 {
152155
main {
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

165175
release {
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
}

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)