build.yml 650 B

1234567891011121314151617181920212223242526
  1. name: Build and Deploy
  2. on: [push]
  3. jobs:
  4. build-and-deploy:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: Checkout
  8. uses: actions/checkout@main
  9. - name: Setup Node.js environment
  10. uses: actions/[email protected]
  11. with:
  12. node-version: "12.x"
  13. - name: Install dependencies
  14. run: |
  15. npm install
  16. - name: vuepress-deploy
  17. uses: jenkey2011/[email protected]
  18. env:
  19. ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
  20. TARGET_REPO: DragonOS-Community/OS_lab_tutorial
  21. TARGET_BRANCH: main
  22. BUILD_SCRIPT: npm run docs:build
  23. BUILD_DIR: docs/.vuepress/dist/