Skip to content

Update GitHub Actions workflow for documentation deployment #4

Update GitHub Actions workflow for documentation deployment

Update GitHub Actions workflow for documentation deployment #4

Workflow file for this run

name: docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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@v4
with:
enable-cache: true
- name: Set up Python
run: uv python install
- name: Install the project
run: |
uv sync --all-extras --dev
uv pip install .
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Deploy MkDocs
run: mkdocs gh-deploy --force --remote-branch gh-pages