Skip to content

Commit f738960

Browse files
committed
[fix] gpg sign on yaml
1 parent 40c2fff commit f738960

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ jobs:
5757
central-token-username: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
5858
central-token-password: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
5959

60-
- name: Import GPG key
61-
env:
62-
EXISTDB_RELEASE_KEY: ${{ secrets.EXISTDB_RELEASE_KEY }}
63-
run: echo "$EXISTDB_RELEASE_KEY" | base64 --decode | gpg --batch --import
64-
6560
- name: Deploy to Maven Central
6661
env:
62+
EXISTDB_RELEASE_KEY: ${{ secrets.EXISTDB_RELEASE_KEY }}
6763
EXISTDB_RELEASE_KEY_ID: ${{ secrets.EXISTDB_RELEASE_KEY_ID }}
6864
EXISTDB_RELEASE_KEY_PASSPHRASE: ${{ secrets.EXISTDB_RELEASE_KEY_PASSPHRASE }}
6965
run: |
66+
# maven-gpg-plugin's BouncyCastle signer reads the armored key from
67+
# MAVEN_GPG_KEY (not from gnupg's keyring). Decode the base64 secret
68+
# in-place so the key never lands on disk.
69+
export MAVEN_GPG_KEY="$(echo "$EXISTDB_RELEASE_KEY" | base64 --decode)"
7070
TAG="${{ github.event.inputs.tag || github.ref_name }}"
7171
REVISION="${TAG#eXist-}"
7272
mvn -V -B --no-transfer-progress \

0 commit comments

Comments
 (0)