1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Maybe fix signing

This commit is contained in:
Matt Brown 2021-01-11 14:37:17 -05:00
parent 08f6a5c26d
commit 00f3ccbb3a
2 changed files with 4 additions and 7 deletions

View File

@ -43,7 +43,7 @@ jobs:
- run: bin/build-phar.sh
env:
GPG_ENCRYPTION: ${{ secrets.GPG_ENCRYPTION }}
GPG_SIGNING: 1
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}

View File

@ -10,10 +10,7 @@ php $DIR/improve_class_alias.php
vendor/bin/box compile
SIGNING_KEY_ID=${SIGNING_KEY_ID:-8A03EA3B385DBAA1}
if [[ "$GPG_ENCRYPTION" != '' ]] ; then
echo "$GPG_ENCRYPTION" | gpg --batch --passphrase-fd 0 keys.asc.gpg
# gpg --batch --yes --import keys.asc
echo "$SIGNING_KEY" | gpg --batch --passphrase-fd 0 --pinentry-mode loopback -u "$SIGNING_KEY_ID" --armor --detach-sig build/psalm.phar
if [[ "$GPG_SIGNING" != '' ]] ; then
echo "$SIGNING_KEY" | gpg --import --no-tty --batch --yes
gpg --command-fd 0 --pinentry-mode loopback -u "$SIGNING_KEY_ID" --batch --detach-sign --armor --output build/psalm.phar.asc build/psalm.phar
fi