Compare commits

...

1 Commits

Author SHA1 Message Date
e62ef879f3 Refactor GitHub Actions workflow to install LaTeX dependencies and build document directly, updating artifact upload step
Some checks failed
Build LaTeX Document / build_latex (pull_request) Failing after 26s
2025-02-09 23:01:37 +01:00

View File

@@ -9,19 +9,26 @@ on:
jobs: jobs:
build_latex: build_latex:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
steps: steps:
- name: Install Node.js
run: |
apt-get update && apt install -y curl
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
apt-get install -y nodejs
- name: Set up Git repository - name: Set up Git repository
uses: actions/checkout@v4.2.2 uses: actions/checkout@v4.2.2
- name: Compile LaTeX document - name: Install LaTeX
uses: xu-cheng/latex-action@3.2.0 run: |
with: apt-get install miktex
root_file: Tesi.tex miktexsetup --shared=yes finish
docker_image: ghcr.io/xu-cheng/texlive-full:20250101
- name: Upload PDF file - name: Build LaTeX document
if: github.ref == 'refs/heads/main' run: pdflatex -interaction=nonstopmode -halt-on-error Tesi.tex
uses: actions/upload-artifact@v4.6.0
- name: Upload PDF artifact
uses: actions/upload-artifact@v4
with: with:
name: PDF path: Test.pdf
path: Tesi.pdf