Skip to content

Commit a9f1005

Browse files
committed
ci: replace latex-action with custom Docker image
1 parent fe989b1 commit a9f1005

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,27 @@
11
name: Build and Release LaTeX CV
2-
32
on:
43
push:
54
tags:
65
- '*'
7-
86
jobs:
97
build_latex:
108
runs-on: ubuntu-latest
11-
129
permissions:
1310
contents: write
14-
1511
steps:
1612
- name: Checkout repository
17-
uses: actions/checkout@v6
13+
uses: actions/checkout@v4
1814

19-
- name: Compile LaTeX document
20-
uses: xu-cheng/latex-action@v4
21-
with:
22-
root_file: cv.tex
23-
args: |
24-
-pdf
25-
-file-line-error
26-
-halt-on-error
27-
-interaction=nonstopmode
15+
- name: Build image
16+
run: docker compose build
2817

29-
- name: Rename PDF
30-
run: mv cv.pdf cv-${{ github.ref_name }}.pdf
18+
- name: Compile LaTeX document
19+
run: docker compose run --rm texlive
3120

3221
- name: Release
3322
uses: softprops/action-gh-release@v2
3423
with:
3524
name: "CV Release ${{ github.ref_name }}"
3625
body: "Auto-generated PDF for version ${{ github.ref_name }}"
37-
files: cv-${{ github.ref_name }}.pdf
26+
files: build/cv-${{ github.ref_name }}.pdf
3827
make_latest: true

0 commit comments

Comments
 (0)