mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-05 05:08:09 +08:00
23 lines
396 B
Bash
23 lines
396 B
Bash
#!/usr/bin/env sh
|
|
|
|
# 确保脚本抛出遇到的错误
|
|
set -e
|
|
|
|
# 生成静态文件
|
|
npm run build
|
|
|
|
# 进入生成的文件夹
|
|
cd docs/.vuepress/dist
|
|
|
|
# 如果是发布到自定义域名
|
|
# echo 'www.example.com' > CNAME
|
|
|
|
git init
|
|
git add -A
|
|
git commit -m 'deploy'
|
|
|
|
# 如果发布到 https://<USERNAME>.github.io/<REPO>
|
|
git push -f https://github.com/WeBankFinTech/fes.js.git master:gh-pages
|
|
|
|
cd -
|