From fe71b6986e7bfce83740ea562d0beb42ac891b9e Mon Sep 17 00:00:00 2001 From: Mirko Milovanovic Date: Sun, 9 Feb 2025 17:42:18 +0100 Subject: [PATCH] Add GitHub Actions workflow for building LaTeX document --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..34bd902 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +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 + + - name: Compile LaTeX document + uses: xu-cheng/latex-action@v3 + with: + root_file: Tesi.tex + + - name: Upload PDF file + if: github.ref == 'refs/heads/main' + uses: actions/upload-artifact@v4 + with: + name: PDF + path: Tesi.pdf \ No newline at end of file