Skip to content

Commit 1428397

Browse files
Run workflow on docker image (xdanaux#87)
Signed-off-by: Stephan Lachnit <[email protected]>
1 parent d351149 commit 1428397

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/build-pdf.yml

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
name: Build template
2-
on: [push, pull_request]
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
registry_package:
39

410
jobs:
511
build-template:
612
name: Build template
713
runs-on: ubuntu-latest
14+
container:
15+
image: ghcr.io/moderncv/debian-texlive-docker:main
16+
817
steps:
9-
- name: Install TeX Live
10-
run: sudo apt update && sudo apt install texlive-full fonts-font-awesome
1118
- name: Checkout code
1219
uses: actions/checkout@v2
20+
1321
- name: Build pdf
1422
run: latexmk -pdflua ./template.tex
15-
- name: Scan log
16-
run: texloganalyser -wahv ./template.log
23+
1724
- name: Upload pdf
1825
uses: actions/upload-artifact@v2
1926
with:
2027
name: template.pdf
2128
path: ./template.pdf
29+
2230
- name: Upload log
31+
if: ${{ always() }}
2332
uses: actions/upload-artifact@v2
2433
with:
2534
name: template.log

0 commit comments

Comments
 (0)