Commit 1c96528d authored by 杨奕's avatar 杨奕 Committed by GitHub

Merge pull request #718 from QingWei-Li/fix/deploy-ci

Deploy-ci: fix shell
parents c7fad7c2 87b9c43f
#! /bin/sh #! /bin/sh
mkdir temp_web mkdir temp_web
git config user.name "element_bot"
git config user.email "element_bot"
# build dev site # build dev site
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$GH_TOKEN" ]; then if [ "$TRAVIS_BRANCH" = "master" ] && [ "$GH_TOKEN" ]; then
CI_ENV=/dev/ ./node_modules/.bin/cooking build -c build/cooking.demo.js CI_ENV=/dev/ ./node_modules/.bin/cooking build -c build/cooking.demo.js
cd temp_web cd temp_web
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.email "element_bot"
rm -rf * rm -rf *
cp -rf ../../examples/element-ui/** . cp -rf ../../examples/element-ui/** .
git add -A . git add -A .
...@@ -21,6 +21,8 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then ...@@ -21,6 +21,8 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then
npm run dist npm run dist
cd temp_web cd temp_web
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.email "element_bot"
rm -rf * rm -rf *
cp -rf ../../lib/** . cp -rf ../../lib/** .
git add -A . git add -A .
...@@ -35,6 +37,8 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then ...@@ -35,6 +37,8 @@ if [ "$TRAVIS_TAG" ] && [ "$GH_TOKEN" ]; then
npm run deploy npm run deploy
cd temp_web cd temp_web
git clone https://$GH_TOKEN@github.com/ElemeFE/element.git && cd element git clone https://$GH_TOKEN@github.com/ElemeFE/element.git && cd element
git config user.name "element_bot"
git config user.email "element_bot"
git checkout gh-pages git checkout gh-pages
rm -rf * rm -rf *
cp -rf ../../examples/element-ui/** . cp -rf ../../examples/element-ui/** .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment