Skip to content

Commit 2997fa0

Browse files
committed
CI: Add documentation workflow
1 parent d66facd commit 2997fa0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/book.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Documentation
2+
on:
3+
# Run only if Documentation/ subdir was changed
4+
push:
5+
paths:
6+
- 'Documentation/**'
7+
# Enable manual trigger
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Install Dependencies
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y texlive-xetex pandoc make
18+
- name: Install Fonts
19+
run: |
20+
mkdir -p ~/.local/share/fonts
21+
cp Documentation/fonts/* ~/.local/share/fonts
22+
fc-cache -f -v
23+
- name: Build Book
24+
run: |
25+
cd Documentation
26+
make
27+
- name: Upload Artifact
28+
uses: actions/upload-artifact@v2
29+
with:
30+
name: book
31+
path: Documentation/vmp-documentation.pdf

0 commit comments

Comments
 (0)