-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.23 KB
/
latex.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
43
44
45
46
47
48
49
50
name: LaTeX to PDF
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install unzip
run: sudo apt-get install -y unzip
- name: Install Inter font
run: |
mkdir -p ~/.local/share/fonts
wget -qO Inter.zip https://github.com/rsms/inter/releases/download/v3.19/Inter-3.19.zip
unzip -o Inter.zip -d ~/.local/share/fonts
fc-cache -f -v
- name: Set up LaTeX environment
uses: xu-cheng/latex-action@v2
with:
packages: |
texlive-latex-extra
texlive-fonts-recommended
texlive-fonts-extra
texlive-latex-recommended
texlive-science
texlive-pictures
texlive-xetex
texlive-plain-generic
texlive-luatex
texlive-bibtex-extra
texlive-lang-all
texlive-extra-utils
- name: Compile LaTeX documents
run: |
for file in *.tex; do
latexmk -pdf -shell-escape -interaction=nonstopmode -output-directory=output "$file"
done
- name: Upload PDFs
uses: actions/upload-artifact@v3
with:
name: pdfs
path: output/*.pdf