Skip to content

Release Test

Release Test #22

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
- run: |
mkdir -p out
mv Game\ of\ Intrigue.pdf out/Game\ of\ Intrigue.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 out/cards/single
mv cards.pdf out/cards/single/cards.pdf
mv cards_abstract.pdf out/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 out/cards/single_foldable
mv cards.pdf out/cards/single_foldable/cards.pdf
mv cards_abstract.pdf out/cards/single_foldable/cards_abstract.pdf
- name: Render Double
uses: leana8959/typst-action@main
with:
source_file: |
cards.typ
cards_abstract.typ
# options: |
# --input=render_type="double"
- run: |
mkdir -p out/cards/double
mv cards.pdf out/cards/double/cards.pdf
mv cards_abstract.pdf out/cards/double/cards_abstract.pdf
- name: Render Double Foldable
uses: leana8959/typst-action@main
with:
source_file: |
cards.typ
cards_abstract.typ
# options: |
# --input=render_type="double_foldable"
- run: |
mkdir -p out/cards/double_foldable
mv cards.pdf out/cards/double_foldable/cards.pdf
mv cards_abstract.pdf out/cards/double_foldable/cards_abstract.pdf
- name: Upload Files
uses: actions/upload-artifact@v4
with:
name: Game of Intrigue
path: "out/**"
- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
name: "${{ github.ref_name }}"
files: "out/**"