mirror of https://github.com/ElemeFE/element
travis: remove files but ignore readme.md
parent
511250765c
commit
d02f3a259e
|
@ -8,7 +8,7 @@ if [ "$TRAVIS_BRANCH" = "master" ] && [ "$GH_TOKEN" ]; then
|
||||||
git clone https://$GH_TOKEN@github.com/ElementUI/dev.git && cd dev
|
git clone https://$GH_TOKEN@github.com/ElementUI/dev.git && cd dev
|
||||||
git config user.name "element_bot"
|
git config user.name "element_bot"
|
||||||
git config user.email "element_bot"
|
git config user.email "element_bot"
|
||||||
rm -rf *
|
rm -rf `find * ! -name README.md`
|
||||||
cp -rf ../../examples/element-ui/** .
|
cp -rf ../../examples/element-ui/** .
|
||||||
git add -A .
|
git add -A .
|
||||||
git commit -m "$TRAVIS_COMMIT_MSG"
|
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 clone https://$GH_TOKEN@github.com/ElementUI/lib.git && cd lib
|
||||||
git config user.name "element_bot"
|
git config user.name "element_bot"
|
||||||
git config user.email "element_bot"
|
git config user.email "element_bot"
|
||||||
rm -rf *
|
rm -rf `find * ! -name README.md`
|
||||||
cp -rf ../../lib/** .
|
cp -rf ../../lib/** .
|
||||||
git add -A .
|
git add -A .
|
||||||
git commit -m "[build] $TRAVIS_TAG"
|
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.name "element_bot"
|
||||||
git config user.email "element_bot"
|
git config user.email "element_bot"
|
||||||
git checkout gh-pages
|
git checkout gh-pages
|
||||||
rm -rf *
|
rm -rf `find * ! -name README.md`
|
||||||
cp -rf ../../examples/element-ui/** .
|
cp -rf ../../examples/element-ui/** .
|
||||||
git add -A .
|
git add -A .
|
||||||
git commit -m "$TRAVIS_COMMIT_MSG"
|
git commit -m "$TRAVIS_COMMIT_MSG"
|
||||||
|
|
Loading…
Reference in New Issue