Merge pull request #11 from Serial-IO/use-new-clang-format #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Generate & Deploy Doxygen Docs' | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'include/**' | |
| - 'Doxyfile' | |
| - '.github/workflows/doxygen.yml' | |
| workflow_dispatch: | |
| # Required for GitHub Pages deployment | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build-docs: | |
| runs-on: ubuntu-latest | |
| name: 'Build Doxygen HTML' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Install Doxygen + Graphviz | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y doxygen graphviz | |
| - name: Generate documentation | |
| run: | | |
| doxygen -v | |
| doxygen Doxyfile | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs/html | |
| deploy: | |
| needs: build-docs | |
| runs-on: ubuntu-latest | |
| name: 'Deploy to GitHub Pages' | |
| steps: | |
| - name: Deploy | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |