Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Mar 7, 2024
1 parent 52088b7 commit 0918d19
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 0918d19

Please sign in to comment.