From 5266e3bc63100518f17a14cbaf55583e354499c2 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Tue, 29 Nov 2016 10:49:28 +0800 Subject: [PATCH] fix build site script --- build/deploy-ci.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/deploy-ci.sh b/build/deploy-ci.sh index f20fe1545..fc2bc16c5 100644 --- a/build/deploy-ci.sh +++ b/build/deploy-ci.sh @@ -10,9 +10,6 @@ fi # release if [ "$TRAVIS_TAG" ]; then - # build sub folder - SUB_FOLDER=$(echo $TRAVIS_TAG | grep -o -E '\d+\.\d+') - # build lib npm run dist cd temp_web @@ -40,6 +37,9 @@ if [ "$TRAVIS_TAG" ]; then npm run deploy:build cd temp_web 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 rm -rf *.js *.css *.map static rm -rf $SUB_FOLDER/**