Skip to content

Commit

Permalink
fix: fix pipeline JDK set up sequence and name [AI:CoPilot]
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-j committed Nov 12, 2024
1 parent e814b78 commit 8951610
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven-publish-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up JDK 11
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/maven-publish-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Build with Maven
run: mvn package -B -ntp --file pom.xml

- name: Install gpg secret key
run: |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY2 }}" | base64 --decode) | gpg --batch --import
Expand All @@ -33,6 +30,9 @@ jobs:
server-password: MAVEN_PASSWORD
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Maven
run: mvn package -B -ntp --file pom.xml

- name: Publish to Maven Central
run: mvn deploy -B -ntp -P release-to-maven-central -s $GITHUB_WORKSPACE/settings.xml -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD2 }} -DskipTests
env:
Expand Down

0 comments on commit 8951610

Please sign in to comment.