Skip to content

Commit 7429181

Browse files
committed
Be more explicit which keyid is used for gpg signing (in jreleaser)
and actually set the key id value and not the label! Signed-off-by: marko-bekhta <[email protected]>
1 parent 486512f commit 7429181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function gpg_import() {
145145
keyId=$(gpg "${@}" --batch --import "$privateKeyPath" 2>&1 | tee >(cat 1>&2) | grep 'key.*: secret key imported' | sed -E 's/.*key ([^:]+):.*/\1/')
146146
# output the fingerprint of the imported key
147147
gpg "${@}" --list-secret-keys --with-colon "$keyId" | sed -E '2!d;s/.*:([^:]+):$/\1/'
148-
export JRELEASER_GPG_KEYNAME=keyId
148+
export JRELEASER_GPG_KEYNAME=$keyId
149149
}
150150

151151
function gpg_delete() {

0 commit comments

Comments
 (0)