Skip to content

Commit

Permalink
update secret key
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 edd9ef7 commit ff830f4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ jobs:
java-version: '8'
distribution: 'temurin'

- name: Import GPG key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
echo "GPG_TTY=$(tty)" >> $GITHUB_ENV
env:
GPG_PRIVATE_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}

- name: Set up Apache Maven Central
uses: actions/setup-java@v3
with:
Expand All @@ -146,7 +153,7 @@ jobs:
- name: Publish to Sonatype
run: mvn clean deploy -Dmaven.test.skip=true -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
env:
GPG_TTY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
GPG_TTY: ${{ env.GPG_TTY }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
Expand Down

0 comments on commit ff830f4

Please sign in to comment.