Skip to content

Documentation

Documentation #63

Workflow file for this run

name: Build Typst document (CI)
on:
push:
paths: '**/*.typ'
workflow_dispatch:
paths: '**/*.typ'
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 examples/exam-points-position.typ"
root_path: '.'
- name: Compile documentation to PDF
uses: mkpoli/compile-typst-action@main
with:
source_paths: "documentation/document.typ"
root_path: '.'
- name: Compile Typst to PDF
uses: mkpoli/compile-typst-action@main
with:
source_paths: "examples/*.typ"
root_path: '.'
- name: Upload PDF file
uses: actions/upload-artifact@v3
with:
name: examples-g-exam
path: ./examples/*.pdf