-
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (89 loc) · 2.73 KB
/
main.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Build and Release
on: [push, workflow_dispatch]
permissions:
contents: write
jobs:
build:
env:
TYPST_FONT_PATHS: ./fonts
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Render Rules
uses: leana8959/typst-action@main
with:
source_file: |
Game of Intrigue.typ
options: |
--input=render_type=single
- name: Render Box
uses: leana8959/typst-action@main
with:
source_file: |
box.typ
- run: |
mkdir -p assets
mv Game\ of\ Intrigue.pdf assets/Game\ of\ Intrigue.pdf
mv box.pdf assets/box.pdf
- name: Render Single
uses: leana8959/typst-action@main
with:
source_file: |-
cards.typ
cards_abstract.typ
options: |
--input=render_type=single
- run: |-
mkdir -p assets/cards/single
mv cards.pdf assets/cards/single/cards.pdf
mv cards_abstract.pdf assets/cards/single/cards_abstract.pdf
- name: Render Single Foldable
uses: leana8959/typst-action@main
with:
source_file: |-
cards.typ
cards_abstract.typ
options: |
--input=render_type=single_foldable
- run: |-
mkdir -p assets/cards/single_foldable
mv cards.pdf assets/cards/single_foldable/cards.pdf
mv cards_abstract.pdf assets/cards/single_foldable/cards_abstract.pdf
- name: Render Foldable
uses: leana8959/typst-action@main
with:
source_file: |-
cards.typ
cards_abstract.typ
options: |
--input=render_type=foldable
- run: |-
mkdir -p assets/cards/foldable
mv cards.pdf assets/cards/foldable/cards.pdf
mv cards_abstract.pdf assets/cards/foldable/cards_abstract.pdf
- name: Render Double Sided
uses: leana8959/typst-action@main
with:
source_file: |-
cards.typ
cards_abstract.typ
options: |
--input=render_type=double_sided
- run: |-
mkdir -p assets/cards/double_sided
mv cards.pdf assets/cards/double_sided/cards.pdf
mv cards_abstract.pdf assets/cards/double_sided/cards_abstract.pdf
- name: Upload Files
uses: actions/upload-artifact@v4
with:
name: Game of Intrigue
path: "assets/**"
- name: Zip for Release
run: zip -r assets.zip assets
- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
name: "${{ github.ref_name }}"
files: "assets.zip"