element/build/deploy-faas.sh

20 lines
445 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-08-29 15:08:35 +08:00
SUB_FOLDER='2.12'
mkdir -p $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
faas deploy alpha -P element
2019-05-30 15:41:51 +08:00
rm -rf temp_web