Skip to content

Commit f178c9a

Browse files
Add GitHub Actions workflow for arXiv submission
1 parent 3e1f7a2 commit f178c9a

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/arXiv.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Draft PDF and arXiv Package
2+
on: [push]
3+
4+
jobs:
5+
build-paper:
6+
runs-on: ubuntu-latest
7+
name: Build Paper and arXiv Package
8+
steps:
9+
- name: Checkout repository
10+
uses: actions/checkout@v4
11+
12+
- name: Install Pandoc and TeX Live
13+
# Installs Pandoc for conversion and TeX Live to generate the PDF
14+
run: |
15+
sudo apt-get update
16+
sudo apt-get install -y pandoc texlive texlive-latex-extra texlive-fonts-recommended zip
17+
18+
- name: Generate LaTeX, PDF, and arXiv Zip
19+
run: |
20+
cd paper
21+
22+
# 1. Generate the arXiv-compatible LaTeX file (.tex)
23+
pandoc paper.md -o paper.tex --standalone --citeproc --bibliography=paper.bib
24+
25+
# 2. Generate the viewable PDF file (.pdf)
26+
pandoc paper.md -o paper.pdf --standalone --citeproc --bibliography=paper.bib
27+
28+
# 3. Create the ZIP package for arXiv submission
29+
# If you have an images/assets folder referenced in your paper, add it to the end of this line (e.g., zip -r arxiv_submission.zip paper.tex paper.bib ../pica/assets/Images)
30+
zip arxiv_submission.zip paper.tex paper.bib
31+
32+
- name: Upload PDF Artifact
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: paper-pdf
36+
path: paper/paper.pdf
37+
38+
- name: Upload arXiv Package Artifact
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: arxiv-package
42+
path: paper/arxiv_submission.zip

0 commit comments

Comments
 (0)