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