-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (35 loc) · 951 Bytes
/
CompileMKDocsToPDF.yml
File metadata and controls
41 lines (35 loc) · 951 Bytes
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
name: Build Documentation PDF
on:
push:
branches:
- main
paths:
- '.github/workflows/CompileMKDocsToPDF.yml'
- 'docs/**'
workflow_dispatch:
jobs:
build-pdf:
name: Build PDF Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create MkDocs Config
working-directory: ./docs
run: |
if [ -f create-mkdocs-pdf-config.sh ]; then
chmod +x create-mkdocs-pdf-config.sh
./create-mkdocs-pdf-config.sh
fi
- name: Build PDF
uses: kartoza/mkdocs-deploy-build-pdf@master
env:
EXTRA_PACKAGES: build-base
CONFIG_FILE: docs/mkdocs.yml
REQUIREMENTS: docs/requirements.txt
- name: Upload PDF Artifact
uses: actions/upload-artifact@v4
with:
name: documentation-pdf
path: pdfs
retention-days: 30