generated from JJ/plantilla-TFG-ETSIIT
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.05 KB
/
latex.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
name: LaTeX Workflow
on:
push:
paths:
- 'doc/**/*.tex'
jobs:
docs-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Comprobar gramática y ortografía
uses: ChiefGokhlayeh/textidote-action@v5
id: textidote
with:
working_directory: doc
root_file: proyecto.tex
- name: Subir informe de TeXtidote
uses: actions/upload-artifact@v4
with:
name: textidote_report
path: doc/report.html
- name: Lanzar error si existen advertencias de TeXtidote
if: ${{ steps.textidote.outputs.num_warnings != 0 }}
run: 'echo "::error file=main.tex::num_warnings: ${{ steps.textidote.outputs.num_warnings }}"; exit 1;'
- name: Compilar memoria
uses: xu-cheng/latex-action@v3
with:
working_directory: doc
root_file: proyecto.tex
- name: Subir PDF
uses: actions/upload-artifact@v4
with:
name: PDF
path: doc/proyecto.pdf