Add GitHub Actions workflow for building LaTeX document
Some checks failed
Build LaTeX Document / build_latex (pull_request) Failing after 14m43s
Some checks failed
Build LaTeX Document / build_latex (pull_request) Failing after 14m43s
This commit is contained in:
26
.github/workflows/main.yml
vendored
Normal file
26
.github/workflows/main.yml
vendored
Normal file
@@ -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
|
Reference in New Issue
Block a user