bachelor-thesis/.github/workflows/build.yml
lukas-heiligenbrunner 7d81c43e7c
Some checks failed
Build LaTeX Document / build (push) Failing after 9m44s
fix build path of src files
2024-09-30 14:27:37 +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 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: src/main.pdf