From df3fad43495b0a394668182ccf67e3fa0581cc7d Mon Sep 17 00:00:00 2001 From: xugaoyi <894072666@qq.com> Date: Mon, 11 Jul 2022 10:59:56 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=B5=8B=E8=AF=95ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f29619c..fc8031c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,17 +34,7 @@ jobs: user_email=`git log -1 --pretty=format:'%ae'` deploy_branch=gh-pages yarn - yarn build - 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分支 + yarn dev + # 只提交到github pages也可以使用github-pages-deploy-action,详见: https://github.com/JamesIves/github-pages-deploy-action