summaryrefslogtreecommitdiffstatsci
path: root/.github/workflows/doxygen.yml
blob: 6617769b6bf5d9fd3c032373d5f018d132ba9659 (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: Doxygen CI
on:
  push:
    branches:
      - master

jobs:
  deploy:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v7
        with:
            submodules: true

      - name: Install requirements
        run: sudo apt install graphviz ninja-build doxygen cmake libvulkan1 libvulkan-dev

      - name: Configure Cmake
        run: cmake -G Ninja -B build -S . -DVKVG_BUILD_DOCS=TRUE
      
      - name: Build documentation
        run: cmake --build build -t doxygen

      - name: Deploy to branch
        uses: peaceiris/actions-gh-pages@v4
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: build/doc/html