Skip to content

Commit

Permalink
🚇 Added pipeline to build pdfs
Browse files Browse the repository at this point in the history
  • Loading branch information
s-weigand committed Feb 26, 2023
1 parent 6288233 commit 1e4c7ab
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build-pdfs.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1e4c7ab

Please sign in to comment.