Skip to content

Bump the python-packages group with 7 updates (#30) #26

Bump the python-packages group with 7 updates (#30)

Bump the python-packages group with 7 updates (#30) #26

Workflow file for this run

---
# used for publishing documentation on push to main or published release
name: publish docs
'on':
push:
branches:
- main
release:
types:
- published
jobs:
build:
# only build and deploy docs if the actor is not dependabot
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v7
- name: Build documentation
run: |
mkdir pages
touch pages/.nojekyll
MYST_NB_EXECUTION_MODE=off \
uv run --group docs --frozen sphinx-build \
-b html \
docs/src \
docs/_build/html
find docs/_build/html -type d -name '.doctrees' -exec rm -rf {} +
cp -r docs/_build/html/* pages/
- name: Deploy documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: pages
folder: pages