浏览代码

Update build.yml

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

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

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