Skip to content

Commit

Permalink
feat(SNSHL-49): rework publishing to MVN central workflow to support …
Browse files Browse the repository at this point in the history
…Java 21, fixed javaDoc plugin config
  • Loading branch information
pjazdzyk committed Oct 4, 2023
1 parent ea1408d commit 74aeab3
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/deploy-to-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,13 @@ jobs:
- name: Set up JDK for deploy to OSSRH
uses: actions/[email protected]
with:
distribution: "zulu"
java-version: 21
distribution: 'zulu'
env:
SERVER_ID: ossrh
SERVER_USERNAME: ${{ secrets.NEXUS_USERNAME }}
SERVER_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

- name: Print secrets
run: echo ${{ secrets.NEXUS_USERNAME }}
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Build with Maven
run: mvn -B package --file pom.xml
Expand All @@ -37,8 +33,9 @@ jobs:

- name: Publish to Apache Maven Central
run: mvn deploy -PossrhDeploy
shell: bash
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_PASSWORD }}
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

0 comments on commit 74aeab3

Please sign in to comment.