mirror of
https://github.com/soconnor0919/honors-thesis.git
synced 2026-02-05 05:56:31 -05:00
50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
name: Build Proposal and Thesis
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install LaTeX
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra texlive-bibtex-extra latexmk
|
|
|
|
- name: Build Thesis
|
|
run: |
|
|
make -C thesis
|
|
|
|
- name: Build Proposal
|
|
working-directory: proposal
|
|
run: |
|
|
mkdir -p build
|
|
mkdir -p output
|
|
pdflatex -output-directory=build -interaction=nonstopmode proposal.tex
|
|
# Run bibtex if aux file exists
|
|
if [ -f build/proposal.aux ]; then
|
|
bibtex build/proposal || true
|
|
fi
|
|
pdflatex -output-directory=build -interaction=nonstopmode proposal.tex
|
|
pdflatex -output-directory=build -interaction=nonstopmode proposal.tex
|
|
cp build/proposal.pdf output/proposal.pdf
|
|
|
|
- name: Upload Thesis PDF
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: thesis-pdf
|
|
path: thesis/out/thesis.pdf
|
|
|
|
- name: Upload Proposal PDF
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: proposal-pdf
|
|
path: proposal/output/proposal.pdf
|