Skip to content

Commit 11b3bb1

Browse files
authored
Merge pull request #12 from lumarel/feature/mkdocs-build
Build pipeline for mkdocs pdf generator
2 parents 141841d + 2b1b118 commit 11b3bb1

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/generate-pdfs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Mkdocs build PDFs
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
schedule:
9+
- cron: '0 12 1 * *'
10+
workflow_dispatch:
11+
12+
jobs:
13+
build_pdfs:
14+
runs-on: ubuntu-latest
15+
name: Build PDFs
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.9"
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install -r ${PWD}/build_pdf/requirements.txt
27+
28+
- name: Build all
29+
run: ${PWD}/build_pdf/build_all.sh
30+
31+
- name: Upload artifacts
32+
uses: actions/upload-artifact@v3
33+
with:
34+
name: pdfs
35+
path: build_pdf/pdf/*

build_pdf/build_all.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)