From 50d28425998555a3b280571660e6fc9abc72c41a Mon Sep 17 00:00:00 2001 From: Paul Sterl Date: Fri, 15 Dec 2023 16:22:00 +0100 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8cd359..3401a49 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,13 +7,19 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Configure GPG Key - run: | - echo -n "$PPG_KEY" | base64 --decode | gpg --import - env: - PPG_KEY: ${{ secrets.PGP_KEY }} - - name: Checkout code - uses: actions/checkout@master # don't get confused by @master - it is the version of the checkout action. You repo will be checked out with ${{ github.ref }} + - + name: Checkout + uses: actions/checkout@v4 + - + name: Import GPG key + uses: crazy-max/ghaction-import-gpg@v6 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.PGP_PASSPHRASE }} + - + name: List keys + run: gpg -K + - name: Build site and deploy maven registry env: GPG_KEYNAME: ${{ secrets.PGP_KEYNAME }}