-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.14 KB
/
docs.yml
File metadata and controls
47 lines (41 loc) · 1.14 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
40
41
42
43
44
45
46
47
name: Documentation Build and Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_and_deploy:
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-python@v5
with: {python-version: "3.12"}
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Configure Git Credentials
run: |
git config --local user.email "mkdocs-upload[bot]@users.noreply.github.com"
git config --local user.name "mkdocs-upload[bot]"
- name: Build with MkDocs
run: uv run --extra docs --locked mkdocs build
- name: Deploy with MkDocs (only on main branch)
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: uv run --extra docs --locked mkdocs gh-deploy --force