test deploy
This commit is contained in:
parent
0c9981119c
commit
8a78ce43f9
|
|
@ -12,8 +12,6 @@ cd docs/.vuepress/dist
|
||||||
# 自定义域名
|
# 自定义域名
|
||||||
echo 'b.evanblogweb.com' > CNAME
|
echo 'b.evanblogweb.com' > CNAME
|
||||||
|
|
||||||
git init
|
|
||||||
git add -A
|
|
||||||
if [ !$GITHUB_TOKEN ]; then
|
if [ !$GITHUB_TOKEN ]; then
|
||||||
msg='deploy'
|
msg='deploy'
|
||||||
githubUrl=git@github.com:xugaoyi/evanblog.git
|
githubUrl=git@github.com:xugaoyi/evanblog.git
|
||||||
|
|
@ -21,7 +19,11 @@ else
|
||||||
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.email "894072666@qq.com"
|
||||||
fi
|
fi
|
||||||
|
git init
|
||||||
|
git add -A
|
||||||
git commit -m $msg
|
git commit -m $msg
|
||||||
git push -f $githubUrl master:gh-pages # 发布到github
|
git push -f $githubUrl master:gh-pages # 发布到github
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue