From 006cff8b5b3ac713ff674d604a8e1b0acaea9474 Mon Sep 17 00:00:00 2001 From: Simeon Schaub Date: Wed, 28 Apr 2021 13:38:09 +0200 Subject: [PATCH] add GH Actions CI (#18) * add GH Actions CI * add some badges to the README * always force rebuilding in CI --- .github/workflows/build_latex.yml | 22 ++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/build_latex.yml diff --git a/.github/workflows/build_latex.yml b/.github/workflows/build_latex.yml new file mode 100644 index 0000000..fb1774a --- /dev/null +++ b/.github/workflows/build_latex.yml @@ -0,0 +1,22 @@ +name: Build LaTeX document +on: + push: + pull_request: + workflow_dispatch: +jobs: + build_latex: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + - name: Compile LaTeX document + uses: xu-cheng/texlive-action/full@v1 + with: + run: | + apk add make + make -B + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: PDF + path: main.pdf diff --git a/README.md b/README.md index 1c37c3f..56ae46e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Thesisvorlage für die Fakultät für Physik am KIT +[![Build LaTeX document](https://github.com/fsphys/thesisvorlage-latex/actions/workflows/build_latex.yml/badge.svg)](https://github.com/fsphys/thesisvorlage-latex/actions/workflows/build_latex.yml) +[![PDF Preview](https://img.shields.io/badge/docs-dev-blue.svg)](https://nightly.link/fsphys/thesisvorlage-latex/workflows/build_latex/master/PDF.zip) + This thesis class is strongly related to the [Praktikumsvorlage](https://github.com/fsphys/praktikum-protokollvorlage-latex/). ## Use the template