bachelor-thesis/.github/workflows/build.yml

33 lines
810 B
YAML
Raw Normal View History

2024-09-30 12:15:17 +00:00
name: Build LaTeX Document
on:
workflow_dispatch:
2024-09-30 12:15:17 +00:00
2024-09-06 13:51:52 +00:00
jobs:
2024-09-30 12:15:17 +00:00
build:
runs-on: ubuntu-latest
2024-09-06 13:51:52 +00:00
steps:
2024-09-30 12:15:17 +00:00
# Checkout the repository containing the LaTeX files
- name: Checkout repository
uses: actions/checkout@v3
# Install LaTeX dependencies manually (TexLive and BibTeX)
- name: Install LaTeX
2024-09-27 11:15:48 +00:00
run: |
2024-09-30 12:15:17 +00:00
sudo apt-get update
2024-09-30 14:30:34 +00:00
sudo apt-get install -y texlive-full biber latexmk
2024-09-30 12:15:17 +00:00
# Compile the LaTeX document (first pass)
- name: Compile LaTeX (first pass)
run: |
2024-09-30 12:27:37 +00:00
cd src
2024-09-30 14:30:34 +00:00
latexmk -pdf -bibtex -interaction=nonstopmode main.tex
2024-09-30 12:15:17 +00:00
# Upload the compiled PDF as an artifact
- name: Upload PDF
uses: actions/upload-artifact@v3
2024-09-06 13:51:52 +00:00
with:
2024-09-30 12:15:17 +00:00
name: compiled-latex
path: src/main.pdf