summaryrefslogtreecommitdiff
path: root/.github/workflows/doxygen.yml
blob: a2a0c0b96921fe7529d25f3b4137c0f26152588b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: run Doxygen to generate docs

on:
  push:
    branches:
      - master

jobs:
  build:
    # Ubuntu 22.04 is needed for an up-to-date version of doxygen.
    runs-on: ubuntu-22.04

    steps:
    - uses: actions/checkout@v2
    - name: Checkout m.css
      uses: actions/checkout@v2
      with:
        repository: octorock/m.css
        ref: refs/heads/bitfields
        path: ./m.css
    - name: Install doxygen
      run: sudo apt install -y doxygen
    - name: Generate docs
      run: ./m.css/documentation/doxygen.py doxygen_config.py
    - name: deploy docs to github pages
      uses: peaceiris/actions-gh-pages@v3
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        publish_dir: ./docs/doxygen/html
        # We do not need history for the gh-pages branch.
        force_orphan: true