deploy-ci.sh 469 B

123456789101112131415
  1. #! /bin/sh
  2. if [ "$TRAVIS_BRANCH" = "master" ] && [ "$GH_TOKEN" ]; then
  3. CI_ENV=/dev/ ./node_modules/.bin/cooking build -c build/cooking.demo.js
  4. mkdir temp_web
  5. cd temp_web
  6. git clone https://$GH_TOKEN@github.com/ElementUI/dev.git && cd dev
  7. git config user.name "$TRAVIS_COMMIT_USER"
  8. git config user.email "$TRAVIS_COMMIT_EMAIL"
  9. rm -rf *
  10. cp -rf ../../examples/element-ui/** .
  11. git add -A .
  12. git commit -m "$TRAVIS_COMMIT_MSG"
  13. git push origin master
  14. fi