31 lines
701 B
YAML
31 lines
701 B
YAML
name: Build Typst PDF
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Typst
|
|
run: |
|
|
curl -L https://github.com/typst/typst/releases/latest/download/typst-x86_64-unknown-linux-musl.tar.xz \
|
|
| tar -xJ --strip-components=1 -C /usr/local/bin typst-x86_64-unknown-linux-musl/typst
|
|
|
|
- name: Build PDF
|
|
run: typst compile main.typ main.pdf
|
|
|
|
- name: Upload PDF artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: projektarbeit-pdf
|
|
path: main.pdf
|
|
retention-days: 30
|