added forgejo workflows

This commit is contained in:
Jonas_Jones 2025-06-10 18:41:18 +02:00
parent 1e9cae9916
commit fc14b7184e

View file

@ -0,0 +1,31 @@
name: Build LaTeX Document
on:
push:
branches:
- main
pull_request:
jobs:
build-latex:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install LaTeX
run: |
sudo apt-get update
sudo apt-get install -y texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
- name: Compile LaTeX document
run: |
pdflatex -interaction=nonstopmode main.tex
pdflatex -interaction=nonstopmode main.tex # run twice for refs
- name: Upload PDF artifact
uses: actions/upload-artifact@v3
with:
name: main-pdf
path: main.pdf