From eb16aa7a2e48157bb9f801e5c8df4c1f8db4443a Mon Sep 17 00:00:00 2001 From: xugaoyi <894072666@qq.com> Date: Thu, 19 Dec 2019 12:22:46 +0800 Subject: [PATCH] test deploy#4 --- deploy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index 8a62e30..9423efd 100644 --- a/deploy.sh +++ b/deploy.sh @@ -13,11 +13,11 @@ cd docs/.vuepress/dist echo 'b.evanblogweb.com' > CNAME # 自定义域名 if [ -z "$GITHUB_TOKEN" ]; then # -z 字符串 长度为0则为true echo "没有token" - msg="deploy" + msg='' githubUrl=git@github.com:xugaoyi/evanblog.git else echo "有token" - msg="GitHub Action deploy" + msg='来自github action的自动' githubUrl=https://xugaoyi:${GITHUB_TOKEN}@github.com/xugaoyi/evanblog.git echo $githubUrl git config --global user.name "xugaoyi" @@ -25,7 +25,7 @@ else fi git init git add -A -git commit -m $msg +git commit -m "${msg}deploy" git push -f $githubUrl master:gh-pages # 发布到github # coding @@ -36,7 +36,7 @@ else codingUrl=https://xugaoyi:${CODING_TOKEN}@git.dev.tencent.com/xugaoyi/xugaoyi.git fi git add -A -git commit -m $msg +git commit -m "${msg}deploy" git push -f $codingUrl master # 发布到coding