Commit 5266e3bc authored by qingwei.li's avatar qingwei.li

fix build site script

parent a8761eba
...@@ -10,9 +10,6 @@ fi ...@@ -10,9 +10,6 @@ fi
# release # release
if [ "$TRAVIS_TAG" ]; then if [ "$TRAVIS_TAG" ]; then
# build sub folder
SUB_FOLDER=$(echo $TRAVIS_TAG | grep -o -E '\d+\.\d+')
# build lib # build lib
npm run dist npm run dist
cd temp_web cd temp_web
...@@ -40,6 +37,9 @@ if [ "$TRAVIS_TAG" ]; then ...@@ -40,6 +37,9 @@ if [ "$TRAVIS_TAG" ]; then
npm run deploy:build npm run deploy:build
cd temp_web cd temp_web
git clone -b gh-pages https://$ROT_TOKEN@github.com/ElemeFE/element.git && cd element git clone -b gh-pages https://$ROT_TOKEN@github.com/ElemeFE/element.git && cd element
# build sub folder
export SUB_FOLDER=$(echo $TRAVIS_TAG | grep -o -E '\d+\.\d+')
mkdir $SUB_FOLDER mkdir $SUB_FOLDER
rm -rf *.js *.css *.map static rm -rf *.js *.css *.map static
rm -rf $SUB_FOLDER/** rm -rf $SUB_FOLDER/**
......
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