Browse Source

Update build.yml

guanjinquan 1 year ago
parent
commit
f2e98a4383
1 changed files with 1 additions and 3 deletions
  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 [email protected]:DragonOS-Community/OS_lab_tutorial.git gh-pages
+        git push -f [email protected]:DragonOS-Community/OS_lab_tutorial.git :gh-pages
         cd -