Former-commit-id: 53ddb060b465b25db113212fc8d2fe11abd71676 [formerly 53ddb060b465b25db113212fc8d2fe11abd71676 [formerly 53ddb060b465b25db113212fc8d2fe11abd71676 [formerly 53ddb060b465b25db113212fc8d2fe11abd71676 [formerly 693a2abe46fd9c72441f508c884e009295f2351a [formerly 061cd46abe708e44c7de1fe9dc2074f9f49158a1]]]]] Former-commit-id: ee7070a82a84846d6beb54d4a2db29c4cd56d1a1 Former-commit-id: 3dc539f72f0d62a3f922ea3cc3023d527833e713 Former-commit-id: 0e472118cd8b61b413276e10c47b72c8be072094 [formerly fa8440206963a9b4d13d49319e0499719b34efbe] Former-commit-id: d756e98a1e3376e7d68a85bd54e545200e98a9fa Former-commit-id: bcdb68859b81a4a5c388cc0bfd1052e717e4b618 Former-commit-id: 87a2a72545619ac0ae01e0b3017e1f13a37d6131 Former-commit-id: b493401bee885e5bdaa3b370bf5340f006ea644a Former-commit-id: 2fbf1eab67a39dcea6dd69fa215763161ef4670a
26 lines
575 B
Bash
Executable File
26 lines
575 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# 确保脚本抛出遇到的错误
|
|
set -e
|
|
|
|
# 生成静态文件
|
|
npm run doc:build
|
|
|
|
# 进入生成的文件夹
|
|
cd docs/.vuepress/dist
|
|
|
|
# 如果是发布到自定义域名
|
|
# echo 'www.example.com' > CNAME
|
|
|
|
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 - |