Skip to content

Workflow file for this run

name: Build Typst document (CI)
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: typst-community/setup-typst@v3
with:
version: latest
- name: Delete samples
run: |
rm -rf ./examples/*.pdf
- name: Compile Typst to PDF
uses: mkpoli/compile-typst-action@main
with:
source_paths: "examples/exam-001.typ examples/exam-002.typ examples/exam-003.typ examples/exam-005.typ"
root_path: '.'
- name: Compile Typst to PDF
uses: mkpoli/compile-typst-action@main
with:
source_paths: "examples/exam-localization.typ examples/exam-minimal.typ"
root_path: '.'
# - name: Check existence of output file
# run: |
# test -e "examples/exam-001.pdf"
# test -e "examples/exam-002.pdf"
# test -e "examples/exam-003.pdf"
# test -e "examples/exam-004.pdf"
# test -e "examples/exam-localization.pdf"
# test -e "examples/exam-minimal.pdf"
- name: Upload PDF file
uses: actions/upload-artifact@v3
with:
name: examples-g-exam
path: ./examples/*.pdf