Skip to content

Automatically scale ome-tiff and ome-zarr data (#14) #16

Automatically scale ome-tiff and ome-zarr data (#14)

Automatically scale ome-tiff and ome-zarr data (#14) #16

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
permissions:
contents: write
jobs:
build:
# only build and deploy docs if the actor is not dependabot
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
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
cd docs
uv sync --all-extras --all-groups
uv run --frozen sphinx-build src build
# remove any doctrees dirs which aren't needed for publishing
find ./build -type d -name '.doctrees' -exec rm -rf {} +
cp -r build/* ../pages/
- name: Deploy documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: pages
folder: pages