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

Simpler globbing for travis deploy

Previous versions failed. This will delete all files except hidden files. The only hidden files that we expect to exist at present are the .git directory and .gitignore
This commit is contained in:
Barney Laurance 2019-06-07 13:18:58 +01:00 committed by Matthew Brown
parent 80837267e7
commit 91c11a0443

View File

@ -1,11 +1,10 @@
#!/usr/bin/env bash
set -e
shopt -s extglob # required for the rm -rf below
git clone https://${GITHUB_TOKEN}@github.com/psalm/phar.git > /dev/null 2>&1
cd phar
rm -rf -- !(".git")
rm -rf *
cp ../build/psalm.phar ../build/psalm.phar.asc ../assets/psalm-phar/* .
mv dot-gitignore .gitignore
git config user.email "travis@travis-ci.org"