test: 测试ci
This commit is contained in:
parent
47eaf6b34b
commit
df3fad4349
|
|
@ -34,17 +34,7 @@ jobs:
|
||||||
user_email=`git log -1 --pretty=format:'%ae'`
|
user_email=`git log -1 --pretty=format:'%ae'`
|
||||||
deploy_branch=gh-pages
|
deploy_branch=gh-pages
|
||||||
yarn
|
yarn
|
||||||
yarn build
|
yarn dev
|
||||||
cd docs/.vuepress/dist
|
|
||||||
git config --global init.defaultBranch $deploy_branch
|
|
||||||
git init
|
|
||||||
git config user.name ${user_name}
|
|
||||||
git config user.email ${user_email}
|
|
||||||
git add -A
|
|
||||||
git commit -m "auto deploy, $commit_info"
|
|
||||||
remote_addr=`echo $remote_addr | awk -F'://' '{print $2}'`
|
|
||||||
remote_addr=https://${user_name}:${{secrets.GITHUB_TOKEN}}@${remote_addr}
|
|
||||||
git remote add origin ${remote_addr}
|
|
||||||
git push origin HEAD:$deploy_branch --force # 推送到github $deploy_branch分支
|
|
||||||
|
|
||||||
# 只提交到github pages也可以使用github-pages-deploy-action,详见: https://github.com/JamesIves/github-pages-deploy-action
|
# 只提交到github pages也可以使用github-pages-deploy-action,详见: https://github.com/JamesIves/github-pages-deploy-action
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue