Former-commit-id: fa44e62cc25b58c8e3ea1608d619a80e5be1d398 [formerly fa44e62cc25b58c8e3ea1608d619a80e5be1d398 [formerly fa44e62cc25b58c8e3ea1608d619a80e5be1d398 [formerly fa44e62cc25b58c8e3ea1608d619a80e5be1d398 [formerly 36c19824b8471a64fc79448f387a53bf3846c9f5 [formerly 8bf2ad148e3d6f4b6fcf9b1113666872f51a2924]]]]] Former-commit-id: 5b3c2d62929d06dcf6875bbcfe9c463acf694941 Former-commit-id: 41b9d7f61085f40a2167d67bf053a2dcfe823159 Former-commit-id: c5a5f3433498e95f9fdbbdf225612773c71b4e1c [formerly 6ab62d738b4e0605ff65e0a9dba72362269f2036] Former-commit-id: 5d3a8fc8ec8de1fece491026ad143d0d31953aeb Former-commit-id: f7740607d012c1c96f92dd56950ef983ffebad08 Former-commit-id: ba408cbe880ab3c7c0c098c4094dee42f93ef3d4 Former-commit-id: 960996e83cee4f35ff5bfd87e286176e3ef77533 Former-commit-id: 9445fd6b866e60c132f6dac34831b5f80ec03819
25 lines
513 B
Bash
Executable File
25 lines
513 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
|
|
|
|
cd - |