| 1 | name: Publish Docs |
| 2 | |
| 3 | permissions: |
| 4 | contents: write |
| 5 | |
| 6 | on: |
| 7 | push: |
| 8 | branches: [main] |
| 9 | |
| 10 | jobs: |
| 11 | deploy: |
| 12 | runs-on: ubuntu-latest |
| 13 | steps: |
| 14 | - name: Checkout repository |
| 15 | uses: actions/checkout@v2 |
| 16 | with: |
| 17 | fetch-depth: 0 |
| 18 | |
| 19 | - name: Install Doxygen |
| 20 | run: sudo apt-get install -y doxygen |
| 21 | |
| 22 | - name: Build Doxygen Documentation |
| 23 | run: doxygen ./Doxyfile |
| 24 | |
| 25 | - name: Deploy Documentation |
| 26 | uses: JamesIves/github-pages-deploy-action@v4 |
| 27 | with: |
| 28 | folder: ./Docs/html |
| 29 | branch: gh-pages |