Compare commits
1 Commits
8de82bc020
...
bdd5a20117
Author | SHA1 | Date | |
---|---|---|---|
bdd5a20117 |
25
.github/workflows/main.yml
vendored
25
.github/workflows/main.yml
vendored
@@ -9,19 +9,24 @@ on:
|
||||
jobs:
|
||||
build_latex:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
steps:
|
||||
- name: Install Node.js
|
||||
run: |
|
||||
apt update && apt install -y curl
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
|
||||
apt install -y nodejs
|
||||
|
||||
- name: Set up Git repository
|
||||
uses: actions/checkout@v4.2.2
|
||||
|
||||
- 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
|
||||
- name: Install LaTeX
|
||||
run: sudo apt update && sudo apt install texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
|
||||
|
||||
- name: Upload PDF file
|
||||
if: github.ref == 'refs/heads/main'
|
||||
uses: actions/upload-artifact@v4.6.0
|
||||
- name: Build LaTeX document
|
||||
run: pdflatex -interaction=nonstopmode -halt-on-error Tesi.tex
|
||||
|
||||
- name: Upload PDF artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: PDF
|
||||
path: Tesi.pdf
|
||||
path: Test.pdf
|
||||
|
Reference in New Issue
Block a user