Skip to content

Commit

Permalink
Add environment variables for GPG private key and passphrase
Browse files Browse the repository at this point in the history
  • Loading branch information
shitikanth committed Sep 24, 2024
1 parent 55a9221 commit 78ebe7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: maven
server-id: 'ossrh'
server-id: 'central'
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build with Maven
run: ./mvnw -V -B deploy
run: ./mvnw -V -B deploy -Dgpg.signer=bc
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
Expand Down

0 comments on commit 78ebe7d

Please sign in to comment.