Ver Fonte

Update build.yml

guanjinquan há 1 ano atrás
pai
commit
3c7dee47ed
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      .github/workflows/build.yml

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

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