[pre-commit.ci] pre-commit autoupdate #1182
This file contains 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: Build Documentation | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Check out source-code repository | |
with: | |
remote: true | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install doxygen | |
run: | | |
sudo apt-get install -y doxygen | |
- name: Install pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install Poetry | |
run: | | |
pip install poetry | |
poetry --version | |
- name: Install Ninja | |
run: | | |
pip install ninja | |
ninja --version | |
- name: Install doc dependencies | |
run: | | |
make install | |
- name: Build docs | |
run: | | |
cd docs | |
make html | |
- name: Deploy | |
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'}} | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build/html |