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