File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 \
You can’t perform that action at this time.
0 commit comments