Skip to content

Commit c29556d

Browse files
committed
feat: resume workflow
1 parent 1c2ab8a commit c29556d

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build Resume
2+
on:
3+
push:
4+
paths:
5+
- 'resume/**'
6+
7+
jobs:
8+
build-resume:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out code
12+
uses: actions/checkout@v2
13+
14+
- name: Install LaTeX
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y \
18+
texlive-latex-base \
19+
texlive-latex-extra \
20+
texlive-fonts-extra \
21+
texlive-fonts-recommended
22+
23+
- name: Build Resume
24+
run: |
25+
cd resume
26+
pdflatex resume.tex
27+
28+
- name: Upload PDF
29+
uses: actions/upload-artifact@v3
30+
with:
31+
name: resume
32+
path: resume/resume.pdf
33+
34+
- name: Commit PDF
35+
run: |
36+
git config --local user.email "${{ secrets.GIT_EMAIL }}"
37+
git config --local user.name "${{ secrets.GIT_USERNAME }}"
38+
git add -A
39+
git diff-index --quiet HEAD || git commit -m "Updated README.md"
40+
- name: Pull changes
41+
run: git pull -r
42+
- name: Push changes
43+
uses: ad-m/github-push-action@master
44+
with:
45+
github_token: ${{ secrets.GITHUB_TOKEN }}
46+
branch: ${{ github.ref }}
47+

0 commit comments

Comments
 (0)