-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.26 KB
/
deploy.yml
File metadata and controls
53 lines (45 loc) · 1.26 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
name: Deploy MkDocs to GitHub Pages
on:
push:
branches: ["main"]
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
# System packages needed by WeasyPrint (used by mkdocs-page-to-pdf)
- name: Install system deps for PDF rendering
run: |
sudo apt-get update
sudo apt-get install -y \
libcairo2 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libgdk-pixbuf2.0-0 \
libffi-dev \
shared-mime-info \
fonts-noto \
fonts-noto-color-emoji
- name: Install Python deps
run: |
python -m pip install --upgrade pip
pip install \
mkdocs \
mkdocs-material \
"mkdocs-material[imaging]" \
"mkdocs-material[extras]" \
mkdocs-git-revision-date-localized-plugin
# Optional: build first so the job fails early if config is bad
- name: Build
run: mkdocs build --strict
- name: Deploy
run: mkdocs gh-deploy --force