From d5e9b1d936e5feeb0d3efe0cb0afa287f0709496 Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Tue, 20 Oct 2020 16:36:02 +0200 Subject: [PATCH] Add GitHub Action Closes #4. Signed-off-by: Stephan Lachnit --- .github/workflows/build-pdf.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..03e12b8 --- /dev/null +++ b/.github/workflows/build-pdf.yml @@ -0,0 +1,23 @@ +name: Build pdf +on: push + +jobs: + build-pdf: + name: Build pdf + runs-on: ubuntu-latest + 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 artifacts + uses: actions/upload-artifact@v2 + with: + name: template-pdf + path: ./template.pdf + name: template-log + path: ./template.log