element/build/deploy-faas.sh

18 lines
421 B
Bash
Raw Normal View History

#! /bin/sh
mkdir temp_web
npm run deploy:build
cd temp_web
git clone --depth 1 -b gh-pages --single-branch https://github.com/ElemeFE/element.git && cd element
# build sub folder
SUB_FOLDER='2.5'
mkdir $SUB_FOLDER
2017-10-26 12:50:28 +08:00
rm -rf *.js *.css *.map static
rm -rf $SUB_FOLDER/**
2017-10-26 12:50:28 +08:00
cp -rf ../../examples/element-ui/** .
cp -rf ../../examples/element-ui/** $SUB_FOLDER/
cd ../..
# deploy domestic site
2017-10-28 18:15:08 +08:00
faas deploy alpha
rm -rf temp_web