Skip to content

Instantly share code, notes, and snippets.

@LaurEars
Created July 22, 2024 18:36
Show Gist options
  • Save LaurEars/3eb53f67110d3c0c11b951498c0ce379 to your computer and use it in GitHub Desktop.
Save LaurEars/3eb53f67110d3c0c11b951498c0ce379 to your computer and use it in GitHub Desktop.
LaTeX resume builder GitHub actions file
name: Build latex
# Controls when the action will run. Triggers the workflow on push
on:
push
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build-latex"
build-latex:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# Existing github action that builds latex files
- name: Build latex document
uses: xu-cheng/latex-action@v3
with:
root_file: resume.tex
# Push artifacts to github
- uses: actions/upload-artifact@v4
with:
name: resume_pdf
path: resume.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment