mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Maybe fix signing
This commit is contained in:
parent
08f6a5c26d
commit
00f3ccbb3a
2
.github/workflows/build-phar.yml
vendored
2
.github/workflows/build-phar.yml
vendored
@ -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 }}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user