-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(SNSHL-49): rework publishing to MVN central workflow to support …
…Java 21, fixed javaDoc plugin config
- Loading branch information
Showing
1 changed file
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} |