test deploy#3
This commit is contained in:
parent
31200e4757
commit
4e0363e310
12
deploy.sh
12
deploy.sh
|
|
@ -12,14 +12,14 @@ cd docs/.vuepress/dist
|
||||||
# github
|
# github
|
||||||
echo 'b.evanblogweb.com' > CNAME # 自定义域名
|
echo 'b.evanblogweb.com' > CNAME # 自定义域名
|
||||||
if [ -z "$GITHUB_TOKEN" ]; then # -z 字符串 长度为0则为true
|
if [ -z "$GITHUB_TOKEN" ]; then # -z 字符串 长度为0则为true
|
||||||
echo '没有token'
|
echo "没有token"
|
||||||
msg='deploy'
|
msg="deploy"
|
||||||
githubUrl=git@github.com:xugaoyi/evanblog.git
|
githubUrl=git@github.com:xugaoyi/evanblog.git
|
||||||
else
|
else
|
||||||
echo '有token'
|
echo "有token"
|
||||||
msg='GitHub Action deploy'
|
msg="GitHub Action deploy"
|
||||||
githubUrl=https://xugaoyi:$GITHUB_TOKEN@github.com/xugaoyi/evanblog.git
|
githubUrl=https://xugaoyi:${GITHUB_TOKEN}@github.com/xugaoyi/evanblog.git
|
||||||
echo githubUrl
|
echo $githubUrl
|
||||||
git config --global user.name "xugaoyi"
|
git config --global user.name "xugaoyi"
|
||||||
git config --global user.email "894072666@qq.com"
|
git config --global user.email "894072666@qq.com"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue