Merge pull request #383 from adamtheturtle/pad-groups-option #56
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: Deploy documentation | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
pages: | |
runs-on: ubuntu-latest | |
environment: | |
name: ${{ github.ref_name == 'main' && 'github-pages' || 'development' }} | |
url: ${{ steps.deployment.outputs.page_url }} | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
# We need our tags in order to calculate the version | |
# in the Sphinx setup. | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- id: deployment | |
uses: sphinx-notes/pages@v3 | |
with: | |
documentation_path: docs/source | |
pyproject_extras: dev | |
python_version: '3.13' | |
sphinx_build_options: -W | |
publish: ${{ github.ref_name == 'main' }} | |
checkout: false |