aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/doxygen.yml
blob: 3e3da7c2adb4ffaf0ee57b57e9f1af3a9f0ff5cb (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
32
33
name: "Documentation"

on:
  push:
    branches:
      - 'master'

jobs:
  doxygen:
    name: Doxygen
    runs-on: ubuntu-22.04
    steps:
      - name: Clone repo
        uses: actions/checkout@v3

      - name: Install doxygen and pre-requsites packages
        run: |
          sudo apt-get update
          sudo apt-get install doxygen qtbase5-dev

      - name: Generate documentation
        run: |
          cmake -B build -D DOXYGEN_WARN_AS_ERROR=YES
          cmake --build build --target SingleApplicationDocumentation

      - name: Deploy to GitHub pages
        uses: crazy-max/ghaction-github-pages@v3
        with:
          target_branch: gh-pages
          build_dir: build/html
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}