浏览代码

Update build.yml

guanjinquan 1 年之前
父节点
当前提交
398c15d068
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      .github/workflows/build.yml

+ 2 - 1
.github/workflows/build.yml

@@ -26,8 +26,9 @@ jobs:
         git init 
         git config --global user.name "github-actions[bot]"
         git config --global user.email "${{ secrets.DRAGONOS_EMAIL }}"
+        git checkout gh-pages
         git add .
         git commit -m "deploy"
-        git push -f git@github.com:DragonOS-Community/OS_lab_tutorial.git master:gh-pages
+        git push -f git@github.com:DragonOS-Community/OS_lab_tutorial.git gh-pages
         cd -