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
2021-01-15 11:58:14 +00:00
SUB_FOLDER='2.15'
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
2020-11-12 07:08:16 +00:00
faas deploy daily -P element
2019-05-30 07:41:51 +00:00
rm -rf temp_web