From dc1229f4bcd5f0056c8e7f463008222ab4d5845b Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Tue, 20 Oct 2020 17:05:36 +0200 Subject: [PATCH] Add GitHub Actions (#21) Closes #4. Signed-off-by: Stephan Lachnit --- .github/workflows/build-pdf.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/build-pdf.yml diff --git a/.github/workflows/build-pdf.yml b/.github/workflows/build-pdf.yml new file mode 100644 index 0000000..2413d2d --- /dev/null +++ b/.github/workflows/build-pdf.yml @@ -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