-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (31 loc) · 954 Bytes
/
build.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
name: Build Typst document
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build_typst_documents:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Copy template.typ to other templates
run: |
cp report-template/template.typ singlefile-template/template.typ
cp report-template/template.typ report-template-empty/template.typ
- name: Compile singlefile-template
uses: lvignoli/typst-action@main
with:
source_file: singlefile-template/main.typ
#- name: Compile report-template
# uses: lvignoli/typst-action@main
# with:
# source_file: report-template/main.typ
- name: Upload PDF file
uses: actions/upload-artifact@v3
with:
name: PDF
path: |
singlefile-template/main.pdf
#report-template/main.pdf