From 8a78ce43f9c912ecde79e1e9cea29690c49e89d6 Mon Sep 17 00:00:00 2001 From: xugaoyi <894072666@qq.com> Date: Thu, 19 Dec 2019 10:48:39 +0800 Subject: [PATCH] test deploy --- deploy.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 44e40e1..6b549a1 100644 --- a/deploy.sh +++ b/deploy.sh @@ -12,8 +12,6 @@ cd docs/.vuepress/dist # 自定义域名 echo 'b.evanblogweb.com' > CNAME -git init -git add -A if [ !$GITHUB_TOKEN ]; then msg='deploy' githubUrl=git@github.com:xugaoyi/evanblog.git @@ -21,7 +19,11 @@ else msg='GitHub Action deploy' githubUrl=https://xugaoyi:$GITHUB_TOKEN@github.com/xugaoyi/evanblog.git echo githubUrl + git config --global user.name "xugaoyi" + git config --global user.email "894072666@qq.com" fi +git init +git add -A git commit -m $msg git push -f $githubUrl master:gh-pages # 发布到github