Created
October 2, 2020 18:32
-
-
Save farr/26d109d947a7ee4a35e37f7d77d91615 to your computer and use it in GitHub Desktop.
GitHub Action for auto-building your LaTeX paper
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: 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