Browse Source

Update build.yml

guanjinquan 1 year ago
parent
commit
72c0429730
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/workflows/build.yml

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

@@ -26,7 +26,7 @@ jobs:
         git init 
         git config --global user.name "github-actions[bot]"
         git config --global user.email "${{ secrets.DRAGONOS_EMAIL }}"
-        git checkout gh-pages
+        git branch 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