github pages deploment 3 #4
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: Deploy Docs | |
| on: | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12.3' | |
| - name: Install dependencies | |
| run: | | |
| pip install sphinx breathe | |
| sudo apt-get install -y doxygen | |
| - name: Build Doxygen docs | |
| working-directory: docs/doxygen | |
| run: doxygen | |
| - name: Build Sphinx docs | |
| run: sphinx-build docs/sphinx/source docs/sphinx/build | |
| - name: Add .nojekyll file | |
| run: touch docs/sphinx/build/.nojekyll | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: docs/sphinx/build |