add workflow

This commit is contained in:
Laila van Reenen 2025-02-22 14:24:10 +01:00
parent c7afb05b61
commit f9b754a392
Signed by: LailaTheElf
GPG Key ID: 8A3EF0226518C12D
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,21 @@
name: generate pdf files
on:
push:
branches: ["main"]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: install deps
run: sudo apt-get update && sudo apt-get install make && sudo make install_ubuntu
- name: generate
run: make all
- uses: actions/upload-artifact@v4
with:
name: documents
path: pdf/*
overwrite: true

View File

@ -32,7 +32,8 @@ install_arch:
install_ubuntu:
mkdir -p build/install
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends curl unzip texlive texlive-lang-european texlive-xetex pandoc
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl unzip texlive texlive-lang-european texlive-lang-greek texlive-xetex pandoc
test -e build/install/ubuntu.zip || curl https://assets.ubuntu.com/v1/0cef8205-ubuntu-font-family-0.83.zip -o build/install/ubuntu.zip
test -d build/install/ubuntu && rm -r build/install/ubuntu || echo