Skip to content

Instantly share code, notes, and snippets.

@farr
Created October 2, 2020 18:32
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farr/26d109d947a7ee4a35e37f7d77d91615 to your computer and use it in GitHub Desktop.
Save farr/26d109d947a7ee4a35e37f7d77d91615 to your computer and use it in GitHub Desktop.
GitHub Action for auto-building your LaTeX paper
name: latex-build
on: [push]
jobs:
build-latex:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install TeXlive
run: sudo apt-get install texlive texlive-publishers texlive-science latexmk
- name: LaTeX Compile
run: latexmk -pdf YOUR_FILE_NAME_HERE
- name: Save artifact
uses: actions/upload-artifact@v2
with:
name: ARTIFACT_NAME
path: YOUR_FILE_NAME_HERE.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment