-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.2 KB
/
tex-to-pdf.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Generate PDF from LaTeX
permissions:
contents: write
on:
push:
paths:
- "src/**/*.tex"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compile LaTeX Resume
uses: xu-cheng/latex-action@v2
with:
root_file: src/resume.tex
- name: Move PDF to bin
# output is in the root directory
run: mv -f resume.pdf bin/resume.pdf
- name: Upload PDF Artifact
uses: actions/upload-artifact@v2
with:
name: resume
path: bin/resume.pdf
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: bin/resume.pdf
tag_name: Resume
- name: Commit PDF
run: |
git pull
git config --local user.email ""
git config --local user.name "GitHub Action"
git add bin/resume.pdf
git commit -m "chore: auto generate resume.pdf"
git push