Prechádzať zdrojové kódy

Merge pull request #12 from DragonOS-Community/guanjinquan-patch-8

Update build.yml
guanjinquan 1 rok pred
rodič
commit
dfd7d9291e
1 zmenil súbory, kde vykonal 9 pridanie a 2 odobranie
  1. 9 2
      .github/workflows/build.yml

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

@@ -39,7 +39,14 @@ jobs:
         
       - name: Run docs
         run: |
-          pwd
+          set -e
           npm install
           npm run docs:build
-      
+          cd docs/.vuepress/dist
+          
+          git init 
+          git add -A
+          git commit -m "deploy"
+          git push -f [email protected]:DragonOS-Community/OS_lab_tutorial.git master:gh-pages
+          
+          cd -