Pārlūkot izejas kodu

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

Update build.yml
guanjinquan 1 gadu atpakaļ
vecāks
revīzija
dfd7d9291e
1 mainītis faili ar 9 papildinājumiem un 2 dzēšanām
  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 -