Skip to content

ci: workflow improvements and repo hygiene (#18) #7

ci: workflow improvements and repo hygiene (#18)

ci: workflow improvements and repo hygiene (#18) #7

Workflow file for this run

name: Docs
on:
push:
branches:
- main
paths:
- "docs/**"
- "mkdocs.yml"
- "polars_iptools/**"
- ".github/workflows/docs.yml"
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v6
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: uv sync --group docs --no-install-project
- run: uv run mkdocs gh-deploy --force