-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (54 loc) · 1.43 KB
/
Copy pathdocs.yml
File metadata and controls
66 lines (54 loc) · 1.43 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Deploy docs
on:
push:
branches:
- main
paths:
- ".github/workflows/docs.yml"
- "docs/**"
- "mkdocs.yml"
- "package-lock.json"
- "package.json"
- "requirements.txt"
- "rollup.docs.config.js"
- "src/api/types/**"
- "src/modules/attendance-calculator/**"
- "src/utils/**"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
name: Build and deploy MkDocs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: pip
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
npm ci
- name: Build docs assets
run: npm run build:docs-assets
- name: Build docs
run: mkdocs build --strict
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Deploy docs
run: mkdocs gh-deploy --force --clean --strict --verbose