-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1.03 KB
/
Copy pathdocs.yml
File metadata and controls
39 lines (31 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Docs
on:
push:
branches: [main]
# Grant GITHUB_TOKEN the permissions required to push to gh-pages branch
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # <--- Tweak 1: Fetches all history for MkDocs git plugins
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python 3.14
run: uv python install 3.14
# Install the package and the dev dependencies (mkdocs etc)
- name: Install dependencies
run: uv sync --all-extras --dev
# Configure Git identity for the gh-deploy commit
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# mkdocs gh-deploy builds the site and pushes it to the gh-pages branch automatically
- name: Deploy Docs
run: uv run mkdocs gh-deploy --force