Add GitHub Actions (#21)

Closes #4.

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
Stephan Lachnit 2020-10-20 17:05:36 +02:00 committed by GitHub
commit dc1229f4bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

26
.github/workflows/build-pdf.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Build template
on: push
jobs:
build-template:
name: Build template
runs-on: ubuntu-20.04
steps:
- name: Install TeX Live
run: sudo apt install texlive-full
- name: Checkout code
uses: actions/checkout@v2
- name: Build pdf
run: latexmk -pdflua ./template.tex
- name: Scan log
run: texloganalyser -w ./template.log
- name: Upload pdf
uses: actions/upload-artifact@v2
with:
name: template.pdf
path: ./template.pdf
- name: Upload log
uses: actions/upload-artifact@v2
with:
name: template.log
path: ./template.log