Update 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 -