docs.yml 688 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Build current version docs
  2. on:
  3. pull_request:
  4. branches: [ "master" ]
  5. # paths:
  6. # - 'docs/**'
  7. env:
  8. GITHUB_REPOSITORY: ${{ github.repository }}
  9. GITHUB_REF: ${{ github.ref }}
  10. jobs:
  11. build-current-version:
  12. if: github.repository == 'DragonOS-Community/DragonOS'
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v4
  16. - name: install requirements
  17. working-directory: ./docs
  18. run: |
  19. sudo apt-get update
  20. sudo apt-get install -y python3-pip
  21. pip3 install -r requirements.txt
  22. - name: build docs
  23. working-directory: ./docs
  24. shell: bash -ileo pipefail {0}
  25. run: |
  26. make html