From c975b75a848fd8d8e17856d32c89e515a21223c2 Mon Sep 17 00:00:00 2001 From: Devon Stewart Date: Tue, 26 Dec 2023 23:36:57 -0800 Subject: [PATCH] Rely on setup-java to handle GPG --- .github/workflows/release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 59b825c..15a011b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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: |