2025-01-20 11:19:08 -08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
workflow_run:
|
|
|
|
|
|
|
|
name: Build and deploy
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
2025-01-21 16:25:24 -08:00
|
|
|
# Could also install texlive-full, but that takes a long time.
|
2025-01-21 15:53:19 -08:00
|
|
|
- name: Install TeXLive
|
|
|
|
run: |
|
2025-01-21 16:05:20 -08:00
|
|
|
sudo apt update
|
2025-01-21 16:25:24 -08:00
|
|
|
DEBIAN_FRONTEND=noninteractive sudo apt install --yes texlive
|
2025-01-21 15:58:40 -08:00
|
|
|
|
2025-01-21 16:25:24 -08:00
|
|
|
- name: Download Typst
|
|
|
|
run: |
|
|
|
|
wget "https://github.com/typst/typst/releases/download/v0.12.0/typst-x86_64-unknown-linux-musl.tar.xz"
|
|
|
|
tar -xf "typst-x86_64-unknown-linux-musl.tar.xz"
|
|
|
|
mv "typst-x86_64-unknown-linux-musl/typst" .
|
2025-01-20 11:19:08 -08:00
|
|
|
|
2025-01-21 16:25:24 -08:00
|
|
|
- name: Build handouts
|
|
|
|
run: TYPST_PATH="./typst" python tools/build/main.py
|
2025-01-20 11:19:08 -08:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: output
|
|
|
|
path: "output/*"
|
|
|
|
retention-days: 10
|