mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-04 05:09:43 +08:00
20 lines
445 B
Bash
20 lines
445 B
Bash
#! /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
|
|
SUB_FOLDER='2.12'
|
|
mkdir -p $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 -P element
|
|
rm -rf temp_web
|