|
1
|
name: Deploy Docs |
|
2
|
|
|
3
|
on: |
|
4
|
push: |
|
5
|
branches: [main] |
|
6
|
paths: |
|
7
|
- "docs/**" |
|
8
|
- "mkdocs.yml" |
|
9
|
|
|
10
|
permissions: |
|
11
|
contents: write |
|
12
|
pages: write |
|
13
|
id-token: write |
|
14
|
|
|
15
|
jobs: |
|
16
|
deploy: |
|
17
|
runs-on: ubuntu-latest |
|
18
|
steps: |
|
19
|
- uses: actions/checkout@v4 |
|
20
|
|
|
21
|
- uses: actions/setup-python@v5 |
|
22
|
with: |
|
23
|
python-version: "3.12" |
|
24
|
|
|
25
|
- name: Install dependencies |
|
26
|
run: | |
|
27
|
pip install mkdocs-material pymdown-extensions |
|
28
|
|
|
29
|
- name: Build and deploy |
|
30
|
run: mkdocs gh-deploy --force |
|
31
|
|