Skip to content

Commit

Permalink
Merge pull request #15 from njzjz/github-action
Browse files Browse the repository at this point in the history
Add GitHub Actions to build & preview TeX files
  • Loading branch information
tangbao authored Dec 4, 2024
2 parents b7b770a + 7dead6c commit 8ceb5a1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build LaTeX document
on:
push:
pull_request:
jobs:
build_latex:
runs-on: ubuntu-24.04
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- uses: actions/cache@v4
name: Tectonic Cache
with:
path: ~/.cache/Tectonic
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
restore-keys: |
${{ runner.os }}-tectonic-
- name: Set up tectonic
uses: wtfjoke/setup-tectonic@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
tectonic-version: 0.15.0
biber-version: 2.17
- name: Compile LaTeX document
run: tectonic thesis.tex
- name: Upload PDF file
uses: actions/upload-artifact@v4
with:
name: PDF
path: thesis.pdf

0 comments on commit 8ceb5a1

Please sign in to comment.