2016-10-19 06:23:22 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$GH_TOKEN" ]; then
|
|
|
|
CI_ENV=/dev/ ./node_modules/.bin/cooking build -c build/cooking.demo.js
|
|
|
|
mkdir temp_web
|
|
|
|
cd temp_web
|
|
|
|
git clone https://$GH_TOKEN@github.com/ElementUI/dev.git && cd dev
|
2016-10-20 12:55:49 +00:00
|
|
|
git config user.name "$TRAVIS_COMMIT_USER"
|
|
|
|
git config user.email "$TRAVIS_COMMIT_EMAIL"
|
2016-10-19 06:23:22 +00:00
|
|
|
rm -rf *
|
|
|
|
cp -rf ../../examples/element-ui/** .
|
|
|
|
git add -A .
|
2016-10-20 00:50:40 +00:00
|
|
|
git commit -m "$TRAVIS_COMMIT_MSG"
|
2016-10-19 06:23:22 +00:00
|
|
|
git push origin master
|
|
|
|
fi
|