Skip to content

Commit

Permalink
chore: Inline secrets in java setup step
Browse files Browse the repository at this point in the history
  • Loading branch information
en-milie committed Nov 22, 2024
1 parent 699abd3 commit 0015b04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-to-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
distribution: 'temurin'
java-version: '21'
server-id: ossrh
server-username: MAVEN_USERNAME # env variable for username in deploy
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
gpg-private-key: ${{ secrets.GPG_SIGN_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
server-username: ${{ secrets.OSSRH_USERNAME}}
server-password: ${{ secrets.OSSRH_PASSWORD }}
gpg-private-key: ${{ secrets.GPG_SIGN_KEY }}
gpg-passphrase: ${{ secrets.GPG_SIGN_PASSPHRASE }}

- name: Publish to Apache Maven Central
run: mvn -B deploy -Psign --file pom.xml
Expand Down

0 comments on commit 0015b04

Please sign in to comment.