forked from hmemcpy/cv
-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (53 loc) · 1.76 KB
/
build.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build (Lualatex)
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_latex:
name: Build and log errors
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Echo cv-maxpowis-ga-build.tex
run: echo "::debug::Writing '\def\releasenumber{ga-build}\input{cv}' to cv-maxpowis-ga-build.tex"
- name: Create cv-maxpowis-ga-build.tex
uses: finnp/create-file-action@2.0.0
env:
FILE_NAME: "cv-maxpowis-ga-build.tex"
FILE_DATA: '\def\releasenumber{ga-build}\input{cv}'
# - name: LaTeX linter (chktex)
# uses: j2kun/chktex-action@1.0.3
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint LaTeX document
uses: ChiefGokhlayeh/textidote-action@v5.3.1
id: lint
with:
root_file: cv-maxpowis-ga-build.tex
- name: Upload TeXtidote report
uses: actions/upload-artifact@v4
with:
name: textidote_report
path: report.html
# - name: Throw error if linter warnings exist
# if: ${{ steps.lint.outputs.num_warnings != 0 }}
# run: 'echo "::error file=main.tex::num_warnings: ${{ steps.lint.outputs.num_warnings }}"; exit 1;'
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: cv-maxpowis-ga-build.tex
latexmk_use_lualatex: true
- name: Upload pdf
uses: actions/upload-artifact@v4
with:
path: cv-maxpowis-ga-build.pdf
if-no-files-found: error
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v4
with:
path: cv-maxpowis-ga-build.log