Build PDF #917
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build PDF | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
branches: | |
- master | |
jobs: | |
build-pdf: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
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@v3 | |
with: | |
auto-update-conda: true | |
auto-activate-base: false | |
miniconda-version: 'latest' | |
python-version: 3.11 | |
environment-file: environment.yml | |
activate-environment: akfds-dev | |
- name: Build QuantEcon Mini Example | |
shell: bash -l {0} | |
run: | | |
jb build akfds/ --builder pdflatex | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pdf | |
path: akfds/_build/latex/book.pdf |