-
Notifications
You must be signed in to change notification settings - Fork 15
55 lines (45 loc) · 1.48 KB
/
main.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: Generate PDF report
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
generate-report:
runs-on: ubuntu-latest
steps:
- name: Initial greeting
run: echo "Report generation started, triggered by a ${{ github.event_name }} event."
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install pandocfilters
run: pip install pandocfilters
- name: Install pandoc
run: sudo apt-get install pandoc
- name: Generate the report
run: |
cd $GITHUB_WORKSPACE
chmod a+x ./scripts/*
python3 generate_report.py
- name: Compile the LaTeX file
continue-on-error: true
uses: dante-ev/latex-action@latest
with:
working_directory: working
root_file: main.tex
compiler: pdflatex
args: -interaction=nonstopmode -shell-escape
- name: Compile the LaTeX file (again, for references)
continue-on-error: true
uses: dante-ev/latex-action@latest
with:
working_directory: working
root_file: main.tex
compiler: pdflatex
args: -interaction=nonstopmode -shell-escape
- name: Upload the report PDF
uses: actions/upload-artifact@v2
with:
name: report.pdf
path: ./working/main.pdf
- name: Final greeting, job status
run: echo "Job finished. Status ${{ job.status }}."