Skip to content

Commit c2852d3

Browse files
author
Mioriarty
committed
add paper workflow
1 parent 47fe029 commit c2852d3

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/paper.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build LaTeX Paper
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'paper/**'
8+
- '.github/workflows/paper.yml'
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- 'paper/**'
13+
- '.github/workflows/paper.yml'
14+
workflow_dispatch:
15+
16+
jobs:
17+
build-paper:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Compile LaTeX paper
25+
uses: xu-cheng/latex-action@v3
26+
with:
27+
working_directory: paper
28+
root_file: paper.tex
29+
latexmk_use_xelatex: false
30+
args: -pdf -file-line-error -halt-on-error -interaction=nonstopmode
31+
32+
- name: Upload paper PDF
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: paper-pdf
36+
path: paper/paper.pdf
37+
if-no-files-found: error

0 commit comments

Comments
 (0)