lukas-heilgenbrunner
815e3b582a
All checks were successful
Build Typst document / build_typst_documents (push) Successful in 8s
33 lines
810 B
YAML
33 lines
810 B
YAML
name: Build LaTeX Document
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
# Checkout the repository containing the LaTeX files
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
# Install LaTeX dependencies manually (TexLive and BibTeX)
|
|
- name: Install LaTeX
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y texlive-full biber latexmk
|
|
|
|
# Compile the LaTeX document (first pass)
|
|
- name: Compile LaTeX (first pass)
|
|
run: |
|
|
cd src
|
|
latexmk -pdf -bibtex -interaction=nonstopmode main.tex
|
|
|
|
# Upload the compiled PDF as an artifact
|
|
- name: Upload PDF
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: compiled-latex
|
|
path: src/main.pdf
|