openthebox/.github/workflows/deploy-itch.yml
2026-03-18 19:04:06 +01:00

39 lines
1.3 KiB
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: Download Loreline dependency
run: |
mkdir -p lib
curl -sL https://github.com/Loreline/loreline/releases/download/v0.7.1/loreline-csharp.zip -o lib/loreline-csharp.zip
unzip -o lib/loreline-csharp.zip -d lib/_extract
cp lib/_extract/*/Loreline.dll lib/ || cp lib/_extract/Loreline.dll lib/
cp lib/_extract/*/Loreline.xml lib/ 2>/dev/null || cp lib/_extract/Loreline.xml lib/ 2>/dev/null || true
cp lib/_extract/*/Loreline.deps.json lib/ 2>/dev/null || cp lib/_extract/Loreline.deps.json lib/ 2>/dev/null || true
rm -rf lib/_extract lib/loreline-csharp.zip
ls -la lib/
- 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