Github CI settings for compiling latex #2
This file contains 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: Compile LaTeX on Push | |
on: | |
push: | |
branches: | |
- main # Change this to your main branch name | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Compile LaTeX | |
uses: xu-cheng/latex-action@v2 | |
with: | |
root_file: main.tex # Replace 'main.tex' with your main LaTeX file | |
args: -jobname=Engineering-Thesis | |
- name: Upload thesis PDF | |
uses: actions/upload-artifact@v2 | |
if: success() | |
with: | |
name: Engineering-Thesis.pdf | |
path: Engineering-Thesis.pdf |