Files
Nils Pukropp 24f8af5d1d
Some checks failed
Build Typst PDF / build (push) Has been cancelled
added gitea action
2026-02-12 16:13:50 +01:00

46 lines
1.3 KiB
YAML

name: Build Typst PDF
run-name: Build PDF for ${{ gitea.actor }} on master
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install FiraCode Nerd Font
run: |
mkdir -p fonts
wget -qO FiraCode.zip https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FiraCode.zip
unzip -q FiraCode.zip -d fonts
- name: Install Typst CLI
run: |
# Download the latest CLI binary for Linux
wget -qO- https://github.com/typst/typst/releases/latest/download/typst-x86_64-unknown-linux-musl.tar.xz | tar -xJ
# Move binary to path (assuming standard Linux runner)
mv typst-x86_64-unknown-linux-musl/typst /usr/local/bin/typst
chmod +x /usr/local/bin/typst
- name: Run Build Script
# We set the Environment Variable TYPST_FONT_PATHS so Typst knows where to look
env:
TYPST_FONT_PATHS: ./fonts
run: |
chmod +x build.sh
./build.sh
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: mathe-merkblaetter
# Your script outputs to the ./build directory
path: build/*.pdf
if-no-files-found: error