-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 1.02 KB
/
build-latex-ebook.yml
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
name: Build LaTeX eBook
on:
push:
branches: [ "v1.0" ]
pull_request:
branches: [ "v1.0" ]
jobs:
build-latex-ebook:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install extra fonts
run: mkdir -p ~/.fonts && cp fonts/*.otf ~/.fonts
- name: Download extra fonts
run: mkdir -p ~/.fonts && curl https://glyphwiki.org/font/gw2696945.ttf -o ~/.fonts/sim-ch_n5100_gw2696945.ttf
- name: Update the package index
run: sudo apt-get update
- name: Install build dependencies
run: sudo apt-get install -y --no-install-recommends fonts-cns11643-kai fonts-hanazono fonts-noto-cjk fonts-noto-cjk-extra texlive-full
- name: Build
run: cd latex && make all
- name: Upload LaTeX ebook
uses: actions/upload-artifact@v3
with:
name: sichuan-cookbook-pdf
path: |
latex/book-cover.pdf
latex/sichuan-cookbook.pdf
if-no-files-found: error
retention-days: 90