summaryrefslogtreecommitdiff
path: root/.github/workflows/doxygen.yml
blob: b88c3a47d706211011a0bef8e0d4555ad6908971 (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
34
35
36
name: Generate and Deploy Doxygen Documentation

on:
  push:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Set up Doxygen
        run: sudo apt-get install -y doxygen graphviz

      - name: Clone m.css
        run: |
          git clone --depth 1 https://github.com/mosra/m.css.git mcss
          ls -R mcss

      - name: Configure m.css
        run: |
          cp mcss/doxygen/m-dark.css ./docs/m-dark.css
          cp mcss/doxygen/m.js ./docs/m.js

      - name: Generate Doxygen documentation
        run: doxygen docs/Doxyfile

      - name: Deploy to GitHub Pages
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: docs/html