Skip to content

Commit 8934acd

Browse files
committed
build: 修改构建方式
1 parent c946f6a commit 8934acd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/deploy.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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]"
3334
else
3435
msg='手动部署'
3536
[email protected]:dunwu/java-tutorial.git
36-
[email protected]:turnon/java-tutorial.git
37+
# [email protected]:turnon/java-tutorial.git
3738
fi
3839
git init
3940
git add -A
4041
git commit -m "${msg}"
4142
# 推送到github gh-pages分支
4243
git 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

4546
cd -
4647
rm -rf ${ROOT_DIR}/docs/.temp

0 commit comments

Comments
 (0)