Skip to content

Merge pull request #514 from openclimatefix/claude/hydra-omegaconf-re… #213

Merge pull request #514 from openclimatefix/claude/hydra-omegaconf-re…

Merge pull request #514 from openclimatefix/claude/hydra-omegaconf-re… #213

Workflow file for this run

name: Publish Documentation
on:
push:
branches:
- main
paths:
- 'docs/**' # Only run if you change the docs
- 'mkdocs.yml'
- 'src/**' # Or if you change the source code (for mkdocstrings)
# Lets us re-deploy by hand from the Actions tab. GitHub drops queued events during an Actions
# outage and never backfills them, so a merge that lands mid-outage silently never publishes.
workflow_dispatch:
# This permission is required so the action can push the built HTML to the gh-pages branch
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Install Python and Dependencies
run: |
uv python install 3.12
uv sync --dev
- name: Build and Deploy to GitHub Pages
run: uv run mkdocs gh-deploy --force