Skip to content

Commit

Permalink
fix git action server id
Browse files Browse the repository at this point in the history
  • Loading branch information
DQinYuan committed Apr 7, 2024
1 parent d7b67a7 commit 5787b34
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@ jobs:
with:
distribution: temurin
java-version: 8
server-id: ossrh
server-id: sonatype-nexus-staging
server-username: 'OSSRH_USER'
server-password: 'OSSRH_PASSWORD'
gpg-passphrase: 'GPG_PASSWORD'
gpg-private-key: ${{ secrets.GPG_SECRET }}
- name: debug settings.xml
run: cat /home/runner/.m2/settings.xml
- name: Publish to Maven Central Repo
run: |
echo $GPG_SECRET | gpg --import
mvn clean deploy --batch-mode --activate-profiles deploy
run: mvn clean deploy --batch-mode --activate-profiles deploy
env:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand Down

0 comments on commit 5787b34

Please sign in to comment.