-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 997 Bytes
/
build.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
name: Build LaTeX document
on:
push:
branches: ["main"]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: resume.tex
extra_fonts: |
./fonts/*.otf
- name: Upload PDF file
uses: actions/upload-artifact@v4
with:
name: resume
path: resume.pdf
# - name: Release
# uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: resume.pdf
- name: Commit and push to gh-pages
run: |
git config --global user.name 'Jonah Seguin'
git config --global user.email '[email protected]'
git checkout -B gh-pages
git add resume.pdf
git commit -m "Meow"
git push origin gh-pages --force