bachelor-thesis/.github/workflows/build.yml
lukas-heiligenbrunner 75f5756e07
Some checks failed
Build LaTeX Document / build (push) Failing after 10m5s
setup skeleton for work
2024-09-30 15:39:19 +02:00

38 lines
1.1 KiB
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
# Compile the LaTeX document (first pass)
- name: Compile LaTeX (first pass)
run: |
cd src
pdflatex -interaction=nonstopmode -halt-on-error -file-line-error main.tex
bibtex sources
pdflatex -interaction=nonstopmode -halt-on-error -file-line-error main.tex
pdflatex -interaction=nonstopmode -halt-on-error -file-line-error 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