Skip to content

Commit b0666fe

Browse files
committed
feat: automatic resume updating
1 parent 15aa4af commit b0666fe

File tree

2 files changed

+41
-438
lines changed

2 files changed

+41
-438
lines changed

.github/workflows/latex-to-pdf.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and Deploy Resume PDF
2+
3+
on:
4+
push:
5+
paths:
6+
- '_latex/resume.tex'
7+
- '.github/workflows/latex-to-pdf.yml'
8+
- 'assets/pdfs/**'
9+
- '_latex/**'
10+
- 'README.md'
11+
- '_config.yml'
12+
- 'index.html'
13+
- '_data/navigation.yml'
14+
- '_pages/resume.md'
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v3
23+
24+
- name: Set up LaTeX
25+
uses: dante-ev/latex-action@v2
26+
with:
27+
root_file: _latex/resume.tex
28+
work_in_root_file_dir: true
29+
30+
- name: Copy PDF to assets/pdfs
31+
run: |
32+
mkdir -p assets/pdfs
33+
cp _latex/resume.pdf assets/pdfs/resume.pdf
34+
35+
- name: Commit and push PDF
36+
run: |
37+
git config --global user.name "github-actions[bot]"
38+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
39+
git add assets/pdfs/resume.pdf
40+
git commit -m "Auto-update resume.pdf from LaTeX source" || echo "No changes to commit"
41+
git push

0 commit comments

Comments
 (0)