openthebox/.github/workflows/deploy-itch.yml
Samuel Bouchet ea487cd332 Add Blazor WASM web build for itch.io browser playtesting
Compile the game to WebAssembly so it runs entirely client-side in the browser.
Uses xterm.js for terminal emulation and Spectre.Console off-screen rendering
for full ANSI output fidelity. Saves use localStorage. CI deploys to itch.io
via Butler on push to main.
2026-03-16 14:52:40 +01:00

28 lines
646 B
YAML

name: Deploy to itch.io
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Publish Blazor WASM
run: dotnet publish src/OpenTheBox.Web -c Release -o publish
- name: Deploy to itch.io
uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
CHANNEL: html5
ITCH_GAME: openthebox
ITCH_USER: Lythom
PACKAGE: publish/wwwroot