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: |