Skip to content

Commit

Permalink
update pw
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandria.gomez authored and alexandria.gomez committed Nov 21, 2024
1 parent 684e9a5 commit 2f1d55f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ jobs:
run: mvn versions:set -DnewVersion=${{ env.PACKAGE_VERSION }}

- name: Publish to Sonatype
run: mvn clean deploy -Dmaven.test.skip=true
run: mvn clean deploy -Dmaven.test.skip=true -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}

- name: Tag commit
uses: rickstaa/action-create-tag@v1
Expand Down Expand Up @@ -177,7 +181,7 @@ jobs:
with:
java-version: '8'
distribution: 'temurin'
server-id: central
server-id: ossrh
server-username: ${{ secrets.MAVEN_USERNAME }}
server-password: ${{ secrets.MAVEN_PASSWORD }}
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
Expand All @@ -190,7 +194,11 @@ jobs:
run: mvn versions:set -DnewVersion=${{ env.PACKAGE_VERSION }}

- name: Publish to Maven Central
run: mvn clean deploy -P release -Dmaven.test.skip=true
run: mvn clean deploy -P release -Dmaven.test.skip=true -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}

- name: Tag commit
uses: rickstaa/action-create-tag@v1
Expand Down

0 comments on commit 2f1d55f

Please sign in to comment.