Skip to content

Commit 7fa10e1

Browse files
author
Denis Jelovina
committed
Enhance PDF compilation workflow by adding Beamer tutorial compilation and updating artifact uploads
1 parent eee1b88 commit 7fa10e1

File tree

1 file changed

+33
-6
lines changed

1 file changed

+33
-6
lines changed

.github/workflows/static.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,47 @@ concurrency:
2222
cancel-in-progress: false
2323

2424
jobs:
25-
build_pdf: # New job for PDF compilation
25+
build_pdf: # Job for LaTeX and Beamer PDF compilation
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout repository
2929
uses: actions/checkout@v4
3030

31-
- name: Compile LaTeX to PDF
31+
- name: Compile LaTeX (main.tex)
3232
uses: xu-cheng/latex-action@v3
3333
with:
3434
root_file: main.tex
35+
extra_packages: >-
36+
texlive-fonts-recommended
37+
texlive-latex-recommended
38+
texlive-latex-extra
39+
texlive-science
40+
texlive-xetex
41+
latexmk
3542
36-
- name: Upload PDF artifact
43+
- name: Compile Beamer tutorial (beamer-tutorial.tex)
44+
uses: xu-cheng/latex-action@v3
45+
with:
46+
root_file: beamer-tutorial.tex
47+
extra_packages: >-
48+
texlive-fonts-recommended
49+
texlive-latex-recommended
50+
texlive-latex-extra
51+
texlive-science
52+
texlive-xetex
53+
latexmk
54+
55+
- name: Upload main PDF artifact
3756
uses: actions/upload-artifact@v4
3857
with:
3958
name: latex-pdf-output
40-
path: main.pdf # Assuming main.pdf is in the root after compilation
59+
path: main.pdf
60+
61+
- name: Upload beamer PDF artifact
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: beamer-pdf-output
65+
path: beamer-tutorial.pdf
4166

4267
# Single deploy job since we're just deploying
4368
deploy:
@@ -54,13 +79,15 @@ jobs:
5479
- name: Download all artifacts
5580
uses: actions/download-artifact@v4
5681
with:
57-
path: artifacts/ # Downloads both latex-pdf-output
82+
path: artifacts/ # Downloads both latex-pdf-output and beamer-pdf-output
5883

5984
- name: Prepare public directory for Pages
6085
run: |
6186
mkdir public
62-
# Move PDF to public/
87+
# Move PDFs to public/
6388
mv artifacts/latex-pdf-output/main.pdf public/
89+
mv artifacts/beamer-pdf-output/beamer-tutorial.pdf public/
90+
ls -l public
6491
6592
- name: Setup Pages
6693
uses: actions/configure-pages@v5

0 commit comments

Comments
 (0)