-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.26 KB
/
render-books.yaml
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
name: Render Books
on: push
jobs:
render:
runs-on: ubuntu-22.04
container: pandoc/latex:2.9
strategy:
max-parallel: 5
matrix:
book: [1-fundamentals]
format: [pdf, epub]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
if: ${{ matrix.format != 'epub' }}
run: |
tlmgr install \
footnotebackref \
ly1 \
mdframed \
mweights \
needspace \
sourcecodepro \
sourcesanspro \
titling \
zref
- name: create book file list
id: files_list
working-directory: src/books/${{ matrix.book }}
run: |
echo "::set-output name=files::$(find ./mainmatter -mindepth 1 | grep md | sed 's/\n/ /g')"
- name: render book
env:
BOOK: ${{ matrix.book }}
FORMAT: ${{ matrix.format }}
FILES: ${{ steps.files_list.outputs.files }}
run: |
src/scripts/build.sh
- name: upload artifact
uses: actions/upload-artifact@master
with:
name: ${{ matrix.book }}-${{ matrix.format }}
path: src/books/${{ matrix.book }}/the-deno-encyclopedia-${{ matrix.book }}.${{ matrix.format }}