Skip to content

Commit

Permalink
Update maven-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics authored Jan 17, 2024
1 parent e604895 commit ae85417
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ jobs:
with:
java-version: '11'
distribution: 'temurin'
- name: Publish package
run: mvn --batch-mode deploy
- id: install-secret-key
name: Install gpg secret key
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AZURE_KEY: ${{ secrets.AZURE_KEY }}
AZURE_REGION: ${{ secrets.AZURE_REGION }}

MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
run: |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Publish package
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} deploy

publish-javadoc:
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit ae85417

Please sign in to comment.