mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 03:07:36 +08:00
18 lines
395 B
Bash
18 lines
395 B
Bash
#! /bin/sh
|
|
mkdir temp_web
|
|
npm run deploy:build
|
|
cd temp_web
|
|
git clone -b gh-pages https://github.com/ElemeFE/element.git && cd element
|
|
|
|
# build sub folder
|
|
SUB_FOLDER='2.3'
|
|
mkdir $SUB_FOLDER
|
|
rm -rf *.js *.css *.map static
|
|
rm -rf $SUB_FOLDER/**
|
|
cp -rf ../../examples/element-ui/** .
|
|
cp -rf ../../examples/element-ui/** $SUB_FOLDER/
|
|
cd ../..
|
|
|
|
# deploy domestic site
|
|
faas deploy alpha
|
|
rm -rf temp_web |