-
Notifications
You must be signed in to change notification settings - Fork 36
48 lines (48 loc) · 1.36 KB
/
build-pdf.yml
File metadata and controls
48 lines (48 loc) · 1.36 KB
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
name: Build PDF
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- master
jobs:
build-pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install Fonts
run: |
sudo apt-get install -y fonts-liberation
sudo apt-get install -y fonts-cmu
- name: Install & Update TexLive
shell: bash -l {0}
run: |
sudo apt-get -qq update
sudo apt-get install -y \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-xetex \
latexmk \
xindy
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: false
miniconda-version: 'latest'
python-version: 3.8
environment-file: environment.yml
activate-environment: qe-mini-example
- name: Build QuantEcon Mini Example
shell: bash -l {0}
run: |
jb build mini_book/ --builder pdflatex
- uses: actions/upload-artifact@v2
with:
name: pdf
path: mini_book/_build/latex/book.pdf