Changed how shapes are broken up #19
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 with Sphinx and Deploy to Pages | |
on: | |
push: | |
branches: ["master"] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
cache: 'pip' | |
cache-dependency-path: '${{ github.workspace }}/doc/requirements.txt' | |
- name: Install Python Dependencies | |
run: python -m pip install -r ${{ github.workspace }}/doc/requirements.txt | |
- name: Install Doxygen | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: doxygen | |
version: 1.0 | |
- name: Configure CMake | |
run: cmake -B ${{ github.workspace }}/build -S ${{ github.workspace }} | |
- name: Build Documentation | |
run: cmake --build ${{ github.workspace }}/build --target documentation | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload Artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: ${{ github.workspace }}/build/doc/root | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |