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