Initial commit

This commit is contained in:
robi 2025-04-30 22:03:39 +02:00
commit d2b9d1c570
4 changed files with 264 additions and 0 deletions

View file

@ -0,0 +1,32 @@
name: Compile LaTeX
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: docker
container: texlive/texlive
steps:
- name: Checkout repository
run: |
git clone "$(echo "$GITHUB_SERVER_URL" | sed -E "s#(https?://)#\1${FORGEJO_TOKEN}@#")/${GITHUB_REPOSITORY}.git" .
- name: Compile LaTeX document
run: |
TMP="$RUNNER_TEMP/output"
cd Aufgabe
latexmk -pdf -interaction=nonstopmode -output-directory="$TMP" main.tex
mv "$TMP/main.pdf" Aufgabe.pdf
- name: Commit PDF back to repo
run: |
git config --global user.name "Forgejo Runner"
git config --global user.email "runner@localhost"
git add .
git commit -m "Automated PDF build"
git push origin "$GITHUB_REF_NAME"