mirror of https://github.com/ElemeFE/element
CI: fix and test deploy script
parent
5ef3a8597b
commit
1a5a6a6f24
|
@ -38,8 +38,11 @@ if [ "$TRAVIS_TAG" ]; then
|
||||||
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
|
# build sub folder
|
||||||
export SUB_FOLDER=$(echo $TRAVIS_TAG | grep -o -E '\d+\.\d+')
|
echo $TRAVIS_TAG
|
||||||
|
export SUB_FOLDER=$(echo "$TRAVIS_TAG" | grep -o -E "\d+\.\d+")
|
||||||
|
echo $SUB_FOLDER
|
||||||
|
|
||||||
|
SUB_FOLDER='1.0'
|
||||||
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/**
|
||||||
|
|
Loading…
Reference in New Issue