Release Test #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/**" |