From 3972748e7b6fb8540e2ddf5bb817773ad06a918a Mon Sep 17 00:00:00 2001 From: MG-5 Date: Tue, 27 Feb 2024 00:24:05 +0100 Subject: [PATCH] Add build workflow --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..4807964 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: LaTeX Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Build PDFs + uses: xu-cheng/latex-action@v3 + with: + latexmk_shell_escape: true + extra_system_packages: "inkscape" + work_in_corresponding_directories: true + root_file: | + cnc-fräse/cnc-fräse.tex + + - name: Upload PDFs. + uses: actions/upload-artifact@v4 + with: + name: PDFs + path: "*.pdf" + retention-days: 5 + if-no-files-found: error