mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Only push Phar to repo when not in a PR
This commit is contained in:
parent
cce9d0a64f
commit
b357a407f9
@ -82,18 +82,18 @@ jobs:
|
||||
# always build phar, but only deploy on tag builds
|
||||
- stage: Phar build
|
||||
php: 7.1
|
||||
env: DEPS="low"
|
||||
env: DEPS="high"
|
||||
script:
|
||||
- bin/build-phar.sh
|
||||
- |
|
||||
bin/build-phar.sh && \
|
||||
git clone https://${GITHUB_TOKEN}@github.com/psalm/shim.git > /dev/null 2>&1 && \
|
||||
if [[ "$TRAVIS_PULL_REQUEST" = 'false' ]]; then git clone https://${GITHUB_TOKEN}@github.com/psalm/phar.git > /dev/null 2>&1 && \
|
||||
cp build/psalm.phar shim/psalm.phar && \
|
||||
cd shim && \
|
||||
git config user.email "travis@travis-ci.org" && \
|
||||
git config user.name "Travis CI" && \
|
||||
git add psalm.phar && \
|
||||
git commit -m "Updated Psalm shim to commit ${TRAVIS_COMMIT}" && \
|
||||
git push --quiet origin master
|
||||
git push --quiet origin master; fi
|
||||
before_deploy:
|
||||
- echo $GPG_ENCRYPTION | gpg --passphrase-fd 0 keys.asc.gpg
|
||||
- gpg --batch --yes --import keys.asc
|
||||
|
Loading…
x
Reference in New Issue
Block a user