From ac0d9f1d31a4f70109cc173f5eb15f483bfaa7ff Mon Sep 17 00:00:00 2001 From: Daniel Chao Date: Wed, 21 Oct 2026 15:09:53 -0700 Subject: [PATCH] Run GitHub release in parallel with Maven (#1928) --- .github/index.pkl | 2 +- .github/jobs/GithubRelease.pkl | 2 +- .github/workflows/release.yml | 22 +++++++++++++++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/index.pkl b/.github/index.pkl index 563f1bc6a..657856b0e 100644 --- a/.github/index.pkl +++ b/.github/index.pkl @@ -227,7 +227,7 @@ release { needs = releaseJobs.keys.toListing() } ["github-release"] = new GithubRelease { - needs = "deploy-release" + needs = releaseJobs.keys.toListing() } } |> toWorkflowJobs } diff --git a/.github/jobs/GithubRelease.pkl b/.github/jobs/GithubRelease.pkl index d6aae564c..03f08cf63 100644 --- a/.github/jobs/GithubRelease.pkl +++ b/.github/jobs/GithubRelease.pkl @@ -10,7 +10,7 @@ fixed job { permissions { contents = "write" } - needs = "deploy-release" + needs = module.needs steps { (catalog.`actions/download-artifact@v6`) { with { diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8ecb2ce4..c57acef67 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1252,7 +1252,27 @@ jobs: ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }} run: ./gradlew $DEBUG_ARGS --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true publishToSonatype closeAndReleaseSonatypeStagingRepository github-release: - needs: deploy-release + needs: + - gradle-check + - gradle-check-windows + - bench + - gradle-compatibility + - java-executables-release + - pkl-cli-linux-amd64-release + - pkl-cli-linux-aarch64-release + - pkl-cli-macOS-aarch64-release + - pkl-cli-alpine-linux-amd64-release + - pkl-cli-windows-amd64-release + - pkl-doc-linux-amd64-release + - pkl-doc-linux-aarch64-release + - pkl-doc-macOS-aarch64-release + - pkl-doc-alpine-linux-amd64-release + - pkl-doc-windows-amd64-release + - libpkl-linux-amd64-release + - libpkl-linux-aarch64-release + - libpkl-macOS-aarch64-release + - libpkl-alpine-linux-amd64-release + - libpkl-windows-amd64-release permissions: contents: write runs-on: ubuntu-latest