Files
mes-ui-d2/deploy-doc.sh
liyang 88eb0004ea no message
Former-commit-id: b8559d347bdd7c7e5fb4c51eafbdb56985a908ba [formerly b8559d347bdd7c7e5fb4c51eafbdb56985a908ba [formerly b8559d347bdd7c7e5fb4c51eafbdb56985a908ba [formerly b8559d347bdd7c7e5fb4c51eafbdb56985a908ba [formerly 4a985f3090d304f3fd5d1f1943936bdfb9efb17f [formerly 57967bda7aea91a029b1eeb166906d98990e8241]]]]]
Former-commit-id: a238684f7657c63c9261959a72e55ea1e5acedc1
Former-commit-id: 171dba116975436021a90bfc1c6037a9bc66eccd
Former-commit-id: 38fa13cd3ef48561fb8b1963e0f08e6d5b7ae73d [formerly 062a357bfec0ca1f265ad3c28697a8ba3e5fda4c]
Former-commit-id: 018ad63e9ba46682700ab0a1854ca9aa0b02cc72
Former-commit-id: 96912374331946c851f0c7e8ef1c6d9029e2e762
Former-commit-id: 6da35b541e60eef79cf0c460552e2ae791798408
Former-commit-id: 2dcae45f9b4a8bdae47bf950dbb11b0115c56927
Former-commit-id: bd36f07d6f3085cdc99b41fc6ce0fcd805a5fd65
2018-06-25 21:34:27 +08:00

23 lines
505 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 -