updated from internal repo on 2024/11/05, rev fb616496d5090185ad0a3bf… #53
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: documentation | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: write | |
jobs: | |
docs: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
sudo apt install -y doxygen | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r _docs/requirements.txt | |
- name: Build documentation | |
run: | | |
python3 _docs/build_all_docs.py | |
cd _docs | |
sphinx-build . _build | |
- name: Deploy documentation | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
with: | |
publish_branch: gh-pages | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: _docs/_build | |
force_orphan: true |