Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nenuadrian authored Nov 4, 2024
1 parent f15c76b commit 6efefe0
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: LaTeX Build

on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Install LaTeX and Biber
run: |
sudo apt-get update
sudo apt-get install -y texlive-full biber
- name: Ensure .bib file exists
run: |
if [ ! -f DISSERTATION/my.bib ]; then
echo "Error: DISSERTATION/my.bib file not found!"
exit 1
fi
- name: Compile LaTeX document with Biber
env:
BIBINPUTS: "./DISSERTATION:" # Path to find .bib files
TEXINPUTS: "./DISSERTATION:" # Path to find .tex files
run: |
cd DISSERTATION
latexmk -pdf -bibtex -shell-escape -synctex=1 -interaction=nonstopmode -f main.tex

0 comments on commit 6efefe0

Please sign in to comment.