Skip to content

Next version: 0.3.5 #166

Next version: 0.3.5

Next version: 0.3.5 #166

Workflow file for this run

name: Docs
on:
push:
branches: [main]
paths:
- 'docs/**'
- '*.md'
- 'mkdocs.yml'
- 'pyproject.toml'
pull_request:
branches: [main]
paths:
- 'mkdocs.yml'
- 'pyproject.toml' # Skips PR builds entirely for pure .md text files!
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: pip install -e ".[docs,torch,lightning,hf]"
- name: Build documentation
run: mkdocs build --strict
- uses: actions/upload-pages-artifact@v3
with:
path: site
deploy:
needs: build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4