Skip to content

Instantly share code, notes, and snippets.

@kjrocker
Created September 17, 2024 12:18
Show Gist options
  • Save kjrocker/67932bd2486a1d52b1e55fa0feb2a06d to your computer and use it in GitHub Desktop.
Save kjrocker/67932bd2486a1d52b1e55fa0feb2a06d to your computer and use it in GitHub Desktop.
Resume Generation
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: |
*.pdf
- 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 }})
@kjrocker
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment