Files
mes-ui-d2/dev/deploy/doc.sh
liyang d314a7e0c6 doc update
Former-commit-id: cb298b728c04e8aa97605a46e44ab7483e37059b [formerly cb298b728c04e8aa97605a46e44ab7483e37059b [formerly cb298b728c04e8aa97605a46e44ab7483e37059b [formerly cb298b728c04e8aa97605a46e44ab7483e37059b [formerly 911ee0a8b3092d8349533da6fb045b7edf3cae9e [formerly e4becd3f2e6959a3bc61c45e240c29f5f617d585]]]]]
Former-commit-id: 71eb37e74b0b115e9a22bd8bb0133f0b94b78ee2
Former-commit-id: a7e272d87f5f146343988c6d860e2b9fcc73ddb9
Former-commit-id: 69c6ffd3b7dea123c9c63a1a51428dc427531cfe [formerly 98910e533e636d6d5a2c67f35fb9322b79a7b430]
Former-commit-id: 83a15430a9a355911460e50f97b4d3bb3f399893
Former-commit-id: 9a6cf38ef701ef35e1139b33f1d3731d8d69e598
Former-commit-id: 25ed7e57bfa00b63a23ed16363956bc83e0ab23d
Former-commit-id: 115feb871277d0d4e5957bba14db27abcf28e107
Former-commit-id: 957b684755ff1ab7275143e4de71f10901b6eda7
2018-08-26 16:55:12 +08:00

25 lines
554 B
Bash
Executable File

#!/usr/bin/env sh
# 确保脚本抛出遇到的错误
set -e
# 生成静态文件
npm run doc:build
# 进入生成的文件夹
cd docs/.vuepress/dist
git init
git add -A
git commit -m 'deploy'
# 如果发布到 https://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
# 如果发布到 https://<USERNAME>.github.io/<REPO>
# git push -f git@github.com:FairyEver/d2-admin.git master:gh-pages
git push -f git@gitee.com:fairyever/d2-admin-doc.git master
cd -
echo "publish to http://d2admin.fairyever.com/"