deploy-faas.sh 445 B

12345678910111213141516171819
  1. #! /bin/sh
  2. set -ex
  3. mkdir temp_web
  4. npm run deploy:build
  5. cd temp_web
  6. git clone --depth 1 -b gh-pages --single-branch https://github.com/ElemeFE/element.git && cd element
  7. # build sub folder
  8. SUB_FOLDER='2.13'
  9. mkdir -p $SUB_FOLDER
  10. rm -rf *.js *.css *.map static
  11. rm -rf $SUB_FOLDER/**
  12. cp -rf ../../examples/element-ui/** .
  13. cp -rf ../../examples/element-ui/** $SUB_FOLDER/
  14. cd ../..
  15. # deploy domestic site
  16. faas deploy alpha -P element
  17. rm -rf temp_web