summaryrefslogtreecommitdiff
path: root/.github/doxygen-gh-pages.yml
blob: b43486dbcdfd165cb8f2fdd50729b4716e356305 (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
37
38
39
40
41
42
43
name: Deploy Doxygen Documentation

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Install Doxygen
        run: |
          sudo apt-get update
          sudo apt-get install -y doxygen graphviz

      - name: Generate Doxygen Documentation
        run: |
          cd docs
          doxygen Doxyfile
          cd ..

      - name: Deploy to GitHub Pages
        if: github.ref == 'refs/heads/master'
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./docs/html
          enable_jekyll: false
          full_commit_message: Deploy Doxygen documentation
          
      - name: List generated files
        run: |
          echo "Contents of docs directory:"
          ls -la docs/
          echo "Contents of docs/html directory (if exists):"
          ls -la docs/html/ || echo "html directory not found"