-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 861 Bytes
/
main.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
name: LaTeX Build
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Install LaTeX and Biber
run: |
sudo apt-get update
sudo apt-get install -y texlive-full biber
- name: Ensure .bib file exists
run: |
if [ ! -f DISSERTATION/my.bib ]; then
echo "Error: DISSERTATION/my.bib file not found!"
exit 1
fi
- name: Compile LaTeX document with Biber
env:
BIBINPUTS: "./DISSERTATION:" # Path to find .bib files
TEXINPUTS: "./DISSERTATION:" # Path to find .tex files
run: |
cd DISSERTATION
latexmk -pdf -bibtex -shell-escape -synctex=1 -interaction=nonstopmode -f main.tex