Former-commit-id: 79a6a379ed14df1eb8b7f7966b7cd7eedc5a4336 [formerly 79a6a379ed14df1eb8b7f7966b7cd7eedc5a4336 [formerly 79a6a379ed14df1eb8b7f7966b7cd7eedc5a4336 [formerly 79a6a379ed14df1eb8b7f7966b7cd7eedc5a4336 [formerly f54bcceebb4f512d7f7bfedecaeef292e3eb6128 [formerly 8ec2e4a218a8a63613db4eb0b9d9e43fdd4f2422]]]]] Former-commit-id: 399773ddbfdea96372c459bdb893689865444046 Former-commit-id: 32e5c98556271adbdd74ad5ebfc1dc78aa341145 Former-commit-id: 214e00baaf0907b41b7a122b0d706bea8201bc0a [formerly ae2816e2b4d1a5e8646234733cc18b2c210661a4] Former-commit-id: 89378c3a0e0a8568ab4241d7244ca29d3f1f1f20 Former-commit-id: 9941ba3e42ae1216c2455f425aad7670c3d1bc97 Former-commit-id: c7c4cee80e3e46c655d6fc3ff7867b88f6f6e080 Former-commit-id: 1b99399cf84ec410045474cde9a4ab7e8d4410a2 Former-commit-id: cef858a6b5adf8ab4f0c82c12af78efd28f631bd
25 lines
557 B
Bash
Executable File
25 lines
557 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/zh/" |