Update profile.tex #82
This file contains hidden or 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 | |
on: | |
push: | |
paths: | |
- "**.tex" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build_latex: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v2 | |
- name: Compile LaTeX document | |
uses: xu-cheng/latex-action@v2 | |
with: | |
root_file: resume.tex | |
post_compile: | | |
mkdir .github/build && \ | |
mv resume.pdf .github/build/${{ secrets.RESUME_FILE_NAME }} && \ | |
cp index.html .github/build/ | |
- name: Confirm PDF is there | |
run: test -f .github/build/${{ secrets.RESUME_FILE_NAME }} | |
- name: Upload Resume to Workflow artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Resume | |
path: .github/build/${{ secrets.RESUME_FILE_NAME }} | |
retention-days: 5 | |
- name: Clean-up build directory | |
run: sudo rm --verbose --recursive --force .github/build/ |