mirror of
https://github.com/soconnor0919/honors-thesis.git
synced 2026-02-04 21:46:31 -05:00
Update upload-artifact to v4
This commit is contained in:
76
.github/workflows/build.yml
vendored
76
.github/workflows/build.yml
vendored
@@ -1,49 +1,49 @@
|
|||||||
name: Build Proposal and Thesis
|
name: Build Proposal and Thesis
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install LaTeX
|
- name: Install LaTeX
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
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
|
sudo apt-get install -y texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra texlive-bibtex-extra latexmk
|
||||||
|
|
||||||
- name: Build Thesis
|
- name: Build Thesis
|
||||||
run: |
|
run: |
|
||||||
make -C thesis
|
make -C thesis
|
||||||
|
|
||||||
- name: Build Proposal
|
- name: Build Proposal
|
||||||
working-directory: proposal
|
working-directory: proposal
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
mkdir -p output
|
mkdir -p output
|
||||||
pdflatex -output-directory=build -interaction=nonstopmode proposal.tex
|
pdflatex -output-directory=build -interaction=nonstopmode proposal.tex
|
||||||
# Run bibtex if aux file exists
|
# Run bibtex if aux file exists
|
||||||
if [ -f build/proposal.aux ]; then
|
if [ -f build/proposal.aux ]; then
|
||||||
bibtex build/proposal || true
|
bibtex build/proposal || true
|
||||||
fi
|
fi
|
||||||
pdflatex -output-directory=build -interaction=nonstopmode proposal.tex
|
pdflatex -output-directory=build -interaction=nonstopmode proposal.tex
|
||||||
pdflatex -output-directory=build -interaction=nonstopmode proposal.tex
|
pdflatex -output-directory=build -interaction=nonstopmode proposal.tex
|
||||||
cp build/proposal.pdf output/proposal.pdf
|
cp build/proposal.pdf output/proposal.pdf
|
||||||
|
|
||||||
- name: Upload Thesis PDF
|
- name: Upload Thesis PDF
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: thesis-pdf
|
name: thesis-pdf
|
||||||
path: thesis/out/thesis.pdf
|
path: thesis/out/thesis.pdf
|
||||||
|
|
||||||
- name: Upload Proposal PDF
|
- name: Upload Proposal PDF
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: proposal-pdf
|
name: proposal-pdf
|
||||||
path: proposal/output/proposal.pdf
|
path: proposal/output/proposal.pdf
|
||||||
|
|||||||
Reference in New Issue
Block a user