From b2db33b465304b34cf0cfe30b2d16da7cb6811a5 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Mon, 11 Jan 2021 15:05:16 -0500 Subject: [PATCH] Try siginig again --- bin/build-phar.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/build-phar.sh b/bin/build-phar.sh index 28dc0705c..eb57b2eb8 100755 --- a/bin/build-phar.sh +++ b/bin/build-phar.sh @@ -11,6 +11,11 @@ php $DIR/improve_class_alias.php vendor/bin/box compile if [[ "$GPG_SIGNING" != '' ]] ; then - echo "$SIGNING_KEY" | gpg --import --no-tty --batch --yes - gpg --command-fd 0 --pinentry-mode loopback -u "12CE0F1D262429A5" --batch --detach-sign --armor --output build/psalm.phar.asc build/psalm.phar + if [[ "$SIGNING_KEY" != '' ]] ; then + echo "Load secret key into gpg" + echo "$SIGNING_KEY" | gpg --import --no-tty --batch --yes + fi + + echo "Sign Phar" + gpg --command-fd 0 --pinentry-mode loopback -u 12CE0F1D262429A5 --batch --detach-sign --armor --output build/psalm.phar.asc build/psalm.phar fi