bachelor-thesis/.github/workflows/build.yml
lukas-heiligenbrunner 4302c5021f
Some checks failed
Build LaTeX Document / build (push) Failing after 10m11s
manually download latex every build
2024-09-30 14:15:17 +02:00

37 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: |
pdflatex -interaction=nonstopmode -halt-on-error -file-line-error main.tex
bibtex main
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: main.pdf