diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6baf97c3..82f5d80e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,6 @@ jobs: with: fetch-depth: 0 - name: Set up Maven Central Repository - if: ${{ $mavenCentralDeployment }} uses: actions/setup-java@v4 with: distribution: "temurin" @@ -54,15 +53,6 @@ jobs: server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE - - name: Set up JDKs - if: ${{ ! $mavenCentralDeployment }} - uses: actions/setup-java@v4 - with: - distribution: "temurin" - java-version: | - 11 - 17 - cache: "maven" # Check preconditions @@ -106,11 +96,11 @@ jobs: # Maven Central Deployment - name: List secret GPG keys - if: ${{ $mavenCentralDeployment && (! inputs.skip-maven-central) }} + if: ${{ ! inputs.skip-maven-central }} run: gpg --list-secret-keys # [impl->dsn~release-workflow.deploy-maven-central~1] - name: Publish to Central Repository - if: ${{ $mavenCentralDeployment && (! inputs.skip-maven-central) }} + if: ${{ ! inputs.skip-maven-central }} run: | mvn --batch-mode -Dgpg.skip=false -DskipTests deploy echo "Published to Maven Central" >> "$GITHUB_STEP_SUMMARY"