-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
22 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 |
---|---|---|
|
@@ -19,11 +19,6 @@ jobs: | |
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: s4u/[email protected] | ||
with: | ||
sonatypeSnapshots: true | ||
githubServer: false | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
|
@@ -39,35 +34,26 @@ jobs: | |
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
#- name: Publish package | ||
# run: mvn --batch-mode deploy | ||
# env: | ||
# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
# MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
#- name: Build with Maven | ||
# run: mvn -B verify --file pom.xml | ||
- uses: s4u/[email protected] | ||
with: | ||
sonatypeSnapshots: true | ||
githubServer: false | ||
- id: install-secret-key | ||
name: Install gpg secret key | ||
run: | | ||
# Install gpg secret key | ||
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY1 }}") | gpg --batch --import | ||
# Verify gpg secret key | ||
gpg --list-secret-keys --keyid-format LONG | ||
- id: publish-to-central | ||
name: Publish to Central Repository | ||
gpg --list-secret-keys --keyid-format LONG | ||
- name: Publish package | ||
run: mvn --batch-mode deploy | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.SONATYPE_USER }} | ||
MAVEN_PASSWORD: ${{ secrets.SONATYPE_SEC }} | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
- name: Build with Maven | ||
run: | | ||
mvn \ | ||
--no-transfer-progress \ | ||
--batch-mode \ | ||
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \ | ||
clean verify deploy | ||
clean verify deploy --file pom.xml | ||
|
||
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive | ||
#- name: Update dependency graph | ||
|