Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Deploy Docs

on:
push:
branches: [main]
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'rejected/**'
release:
types: [published]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: "3.13"

- name: Install dependencies
run: uv sync --all-groups
env:
UV_CONFIG_FILE: /dev/null

- name: Build docs
run: uv run mkdocs build --strict
env:
UV_CONFIG_FILE: /dev/null

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: site

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
25 changes: 21 additions & 4 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,30 @@ on:
pull_request:
push:
branches: [main]
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
tags-ignore: ["*"]

jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: "3.13"

- name: Install dependencies
run: uv sync --all-groups
env:
UV_CONFIG_FILE: /dev/null

- name: Build docs
run: uv run mkdocs build --strict
env:
UV_CONFIG_FILE: /dev/null

test:
runs-on: ubuntu-latest
strategy:
Expand Down
Loading