mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 03:07:36 +08:00
16 lines
469 B
Bash
16 lines
469 B
Bash
#! /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
|
|
git config user.name "$TRAVIS_COMMIT_USER"
|
|
git config user.email "$TRAVIS_COMMIT_EMAIL"
|
|
rm -rf *
|
|
cp -rf ../../examples/element-ui/** .
|
|
git add -A .
|
|
git commit -m "$TRAVIS_COMMIT_MSG"
|
|
git push origin master
|
|
fi
|