Files
Tesi/.github/workflows/main.yml
Mirko Milovanovic 3fb8af1a98
Some checks failed
Build LaTeX Document / build_latex (pull_request) Failing after 29s
Fix working directory and artifact path in LaTeX workflow
2025-02-09 22:17:59 +01:00

34 lines
774 B
YAML

name: Build LaTeX Document
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4.2.2
with:
path: /Tesi
- name: Compile LaTeX document
uses: xu-cheng/latex-action@3.2.0
with:
root_file: Tesi.tex
docker_image: ghcr.io/xu-cheng/texlive-full:20250101
working_directory: /Tesi
- name: Check LaTeX compilation
run: |
file Tesi.pdf | grep -q ' PDF '
- name: Upload PDF file
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4.6.0
with:
name: PDF
path: /Tesi/Tesi.pdf