This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build LaTeX document | |
on: [push] | |
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 | |
- 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 |