diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index d2451f81eb..5077a05e59 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -27,6 +27,11 @@ jobs: git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + - name: Import PGP Private Key + run: | + echo "${{ secrets.PGP_PRIVATE_KEY }}" | gpg --dearmor --output keyring.gpg + echo "${{ secrets.PGP_KEY_PASSPHRASE }}" > passphrase-file.txt + - name: Set up Helm uses: azure/setup-helm@29960d0f5f19214b88e1d9ba750a9914ab0f1a2f # v4.0.0 with: @@ -36,6 +41,10 @@ jobs: uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0 env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + CR_KEY: helm-charts+no-reply@cloudnative-pg.io + CR_KEYRING: keyring.gpg + CR_PASSPHRASE_FILE: passphrase-file.txt + CR_SIGN: true CR_SKIP_EXISTING: true CR_GENERATE_RELEASE_NOTES: true CR_RELEASE_NAME_TEMPLATE: "{{ .Name }}-v{{ .Version }}"