diff --git a/.github/index.pkl b/.github/index.pkl index 02d701e1..61e7ebd8 100644 --- a/.github/index.pkl +++ b/.github/index.pkl @@ -184,11 +184,14 @@ release { jobs = (releaseJobs) { ["deploy-release"] = ( - new DeployJob { command = "publishToSonatype closeAndReleaseSonatypeStagingRepository" } + new DeployJob { + isRelease = true + command = "publishToSonatype closeAndReleaseSonatypeStagingRepository" + } ) { needs = releaseJobs.keys.toListing() } - ["github-release"] = (new GithubRelease {}) { + ["github-release"] = new GithubRelease { needs = "deploy-release" } } |> toWorkflowJobs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0d969df9..b9599c5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -754,7 +754,7 @@ jobs: ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }} ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }} - run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true publishToSonatype closeAndReleaseSonatypeStagingRepository + run: ./gradlew --info --stacktrace --no-daemon -DpklMultiJdkTesting=true -DreleaseBuild=true publishToSonatype closeAndReleaseSonatypeStagingRepository github-release: needs: deploy-release permissions: