Created
September 17, 2024 12:18
-
-
Save kjrocker/67932bd2486a1d52b1e55fa0feb2a06d to your computer and use it in GitHub Desktop.
Resume Generation
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: [pull_request] | |
jobs: | |
build_latex: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v4 | |
- name: Compile Resume | |
uses: xu-cheng/latex-action@v3 | |
with: | |
root_file: | | |
main.tex | |
cover.tex | |
- name: Rename Files | |
run: | | |
mv main.pdf My\ Resume.pdf | |
mv cover.pdf My\ Cover\ Letter.pdf | |
- name: Upload PDF file | |
id: artifact-upload-step | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.ref_name }} | |
path: | | |
- name: PR Comment | |
uses: mshick/add-pr-comment@v2 | |
with: | |
message: | | |
The PDF artifact has been generated. | |
Download the PDF artifact [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some context. My resume is in LaTeX, all this action does is generate the PDFs, set them as artifacts, and leave a comment to the artifacts on the PR.
This lets me open up PRs for any specific job I'm applying to, update the text, and recieve my PDFs.