-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (33 loc) · 1019 Bytes
/
integration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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: Upload PDF file
uses: actions/upload-artifact@v3
with:
name: examples-g-exam
path: ./examples/*.pdf