bachelor-thesis/.github/workflows/build.yml
lukas-heiligenbrunner a5494ece51
All checks were successful
Build LaTeX Document / build (push) Successful in 9m54s
use latexmk
2024-09-30 16:30:34 +02:00

35 lines
902 B
YAML

name: Build LaTeX Document
on:
push:
branches:
- master # This will run the action when you push to the main branch
pull_request:
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