From 1e4c7ab7a09a04f57ddb456f464ac267839c7b1f Mon Sep 17 00:00:00 2001 From: s-weigand Date: Sun, 26 Feb 2023 19:54:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=87=20Added=20pipeline=20to=20build=20?= =?UTF-8?q?pdfs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-pdfs.yml | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/build-pdfs.yml diff --git a/.github/workflows/build-pdfs.yml b/.github/workflows/build-pdfs.yml new file mode 100644 index 0000000..7b2ec73 --- /dev/null +++ b/.github/workflows/build-pdfs.yml @@ -0,0 +1,50 @@ +name: Build-PDFs + +on: + # For now commented out since private repositories only have a limited amount of CI time + # push: + # pull_request: + workflow_dispatch: + +jobs: + build: + name: 🚀 Compile and upload master thesis + runs-on: ubuntu-latest + defaults: + run: + shell: bash -l {0} + strategy: + matrix: + case_study: [4TT, dPSI, rc] + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - uses: actions/cache@v3 + name: Tectonic Cache + with: + path: ~/.cache/Tectonic + key: ${{ runner.os }}-tectonic-${{ hashFiles('**/_preamble*.tex') }} + restore-keys: | + ${{ runner.os }}-tectonic- + + - name: Install Conda environment with Micromamba + uses: mamba-org/provision-with-micromamba@v15 + with: + cache-env: true + + - name: Setup tectonic and biber + uses: wtfjoke/setup-tectonic@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + biber-version: "2.17" + + - name: Run notebooks and build PDFs + run: | + python scripts/create_notebook_pdf.py ${{ matrix.case_study }} + + - name: Upload PDFs + uses: actions/upload-artifact@v3 + with: + name: pdfs + path: pdfs/*.pdf