Skip to content

Commit 799a4e0

Browse files
committed
added correct build sequence for workflow, by including a pass through biber
1 parent c028924 commit 799a4e0

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/build-latex.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,35 @@ jobs:
1313
- name: Checkout repository
1414
uses: actions/checkout@v2
1515

16-
# This is mainly done twice because LaTex only outputs TOC on two runs. The first run reads, the second compiles.
17-
- name: First LaTeX Pass
16+
- name: First LaTeX Pass (pdflatex)
1817
uses: dante-ev/latex-action@latest
1918
with:
2019
root_file: main.tex
2120
compiler: pdflatex
2221
args: -interaction=nonstopmode
2322

24-
- name: Second LaTeX Pass
23+
- name: Biber Pass (resolve biblatex references)
24+
uses: dante-ev/latex-action@latest
25+
with:
26+
root_file: main
27+
compiler: biber
28+
args: ""
29+
30+
- name: Second LaTeX Pass (pdflatex)
31+
uses: dante-ev/latex-action@latest
32+
with:
33+
root_file: main.tex
34+
compiler: pdflatex
35+
args: -interaction=nonstopmode
36+
37+
- name: Third LaTeX Pass (resolve TOC + cross-refs)
2538
uses: dante-ev/latex-action@latest
2639
with:
2740
root_file: main.tex
2841
compiler: pdflatex
2942
args: -interaction=nonstopmode
3043

31-
- name: Move and Rename PDF (non-fatal)
44+
- name: Move and Rename PDF
3245
run: mv main.pdf document.pdf
3346

3447
- name: Commit and Push PDF
@@ -37,4 +50,4 @@ jobs:
3750
git config --global user.email "actions@github.com"
3851
git add document.pdf
3952
git commit -m "📄 Generated PDF" || echo "No changes to commit"
40-
git push
53+
git push

0 commit comments

Comments
 (0)