File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -24,23 +24,24 @@ cd ${ROOT_DIR}/docs/.temp
2424# 如果是发布到自定义域名
2525# echo 'www.example.com' > CNAME
2626
27- if [[ ${GITHUB_TOKEN} && ${GITEE_TOKEN} ]]; then
27+ # if [[ ${GITHUB_TOKEN} && ${GITEE_TOKEN} ]]; then
28+ if [[ ${GITHUB_TOKEN} ]]; then
2829 msg=' 自动部署'
2930 GITHUB_URL=https://dunwu:${GITHUB_TOKEN} @github.com/dunwu/java-tutorial.git
30- GITEE_URL=https://turnon:${GITEE_TOKEN} @gitee.com/turnon/java-tutorial.git
31+ # GITEE_URL=https://turnon:${GITEE_TOKEN}@gitee.com/turnon/java-tutorial.git
3132 git config --global user.name " dunwu"
3233 git config --global user.email
" [email protected] " 3334else
3435 msg=' 手动部署'
3536 [email protected] :dunwu/java-tutorial.git
36- [email protected] :turnon/java-tutorial.git
37+ # [email protected] :turnon/java-tutorial.git3738fi
3839git init
3940git add -A
4041git commit -m " ${msg} "
4142# 推送到github gh-pages分支
4243git push -f " ${GITHUB_URL} " master:gh-pages
43- git push -f " ${GITEE_URL} " master:gh-pages
44+ # git push -f "${GITEE_URL}" master:gh-pages
4445
4546cd -
4647rm -rf ${ROOT_DIR} /docs/.temp
You can’t perform that action at this time.
0 commit comments