1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00
psalm/bin/build-phar.sh
Bruce Weirdan 96521a6469 Rearrange build/sign/deploy
- Phar signing moved to build-phar.sh (conditional on gpg keys
availability)
- Tagged phar releases moved to travis-deploy-phar.sh
- `travis-deploy-phar.sh` is now triggered via `script` deploy provider
2019-06-02 11:25:53 -04:00

11 lines
319 B
Bash
Executable File

#!/usr/bin/env bash
composer bin box install
vendor/bin/box compile
if [[ "$GPG_ENCRYPTION" != '' ]] ; then
echo $GPG_ENCRYPTION | gpg --passphrase-fd 0 keys.asc.gpg
gpg --batch --yes --import keys.asc
echo $SIGNING_KEY | gpg --passphrase-fd 0 -u 8A03EA3B385DBAA1 --armor --detach-sig build/psalm.phar
fi