travis: remove files but ignore readme.md

pull/757/head
qingwei.li 2016-10-31 18:14:14 +08:00
parent 511250765c
commit d02f3a259e
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ if [ "$TRAVIS_BRANCH" = "master" ] && [ "$GH_TOKEN" ]; then
git clone https://$GH_TOKEN@github.com/ElementUI/dev.git && cd dev
git config user.name "element_bot"
git config user.email "element_bot"
rm -rf *
rm -rf `find * ! -name README.md`
cp -rf ../../examples/element-ui/** .
git add -A .
git commit -m "$TRAVIS_COMMIT_MSG"
@ -23,7 +23,7 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then
git clone https://$GH_TOKEN@github.com/ElementUI/lib.git && cd lib
git config user.name "element_bot"
git config user.email "element_bot"
rm -rf *
rm -rf `find * ! -name README.md`
cp -rf ../../lib/** .
git add -A .
git commit -m "[build] $TRAVIS_TAG"
@ -40,7 +40,7 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then
git config user.name "element_bot"
git config user.email "element_bot"
git checkout gh-pages
rm -rf *
rm -rf `find * ! -name README.md`
cp -rf ../../examples/element-ui/** .
git add -A .
git commit -m "$TRAVIS_COMMIT_MSG"