element/build/deploy-faas.sh

19 lines
443 B
Bash
Raw Normal View History

#! /bin/sh
set -ex
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
2019-03-28 04:33:18 +00:00
SUB_FOLDER='2.7'
mkdir -p $SUB_FOLDER
2017-10-26 04:50:28 +00:00
rm -rf *.js *.css *.map static
rm -rf $SUB_FOLDER/**
2017-10-26 04:50:28 +00:00
cp -rf ../../examples/element-ui/** .
cp -rf ../../examples/element-ui/** $SUB_FOLDER/
cd ../..
# deploy domestic site
faas deploy alpha -P element
2017-10-28 10:15:08 +00:00
rm -rf temp_web