Skip to content

✨ add files and assay model #25

✨ add files and assay model

✨ add files and assay model #25

name: Preview documentation build
on: # yamllint disable-line rule:truthy
pull_request:
types:
- opened
- reopened
- synchronize
env:
CLICOLOR: 1
concurrency: preview-${{ github.ref }}
permissions: {}
jobs:
run:
# Grant GITHUB_TOKEN the permissions required to make a gh-pages deployment
permissions:
contents: write # to let mkdocs write the new docs
pages: write # to deploy to Pages
id-token: write # allow to generate an OpenID Connect (OIDC) token
pull-requests: write # add comment on the PR with the preview URL
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
# https://github.com/astral-sh/setup-uv
- name: Install uv
uses: astral-sh/setup-uv@v7.3.1
with:
python-version: 3.13
enable-cache: true
cache-dependency-glob: "uv.lock"
# https://github.com/actions/setup-python
- name: Set up Python 3
uses: actions/setup-python@v6.2.0
with:
python-version: 3.13
- name: Install dependencies
run: uv sync --dev --no-progress
- name: Build documentation
run: |
uv run mkdocs build -d site
touch site/.nojekyll
# https://github.com/rossjrw/pr-preview-action
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1.8.1
with:
source-dir: site/
preview-branch: gh-pages