Skip to content

Card box

Card box #63

Workflow file for this run

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"