Skip to content

Commit

Permalink
Rely on setup-java to handle GPG
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Dec 27, 2023
1 parent 4964537 commit c975b75
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.PGP_SECRET }}
passphrase: ${{ secrets.PGP_PASSPHRASE }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
Expand All @@ -25,11 +19,14 @@ jobs:
server-id: ossrh
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
gpg-private-key: ${{ secrets.PGP_SECRET }}
gpg-passphrase: PGP_PASSPHRASE
- name: print Java version
run: java -version
- name: Build with Maven
env:
PGP_KEYID: ${{ secrets.PGP_KEYID }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: |
Expand Down

0 comments on commit c975b75

Please sign in to comment.