chore(ci): now publishes to itch.io

This commit is contained in:
Neko Ayaka 2026-04-02 01:51:35 +08:00
parent f72d3057c3
commit fbd17e9311
No known key found for this signature in database
2 changed files with 32 additions and 0 deletions

View file

@ -113,3 +113,13 @@ jobs:
files: apps/stage-pocket/android/bundle/${{ env.APK_NAME }}
append_body: true
tag_name: ${{ github.event.release.tag_name || inputs.tag }}
- name: Setup butler
uses: remarkablegames/setup-butler@v2
# https://itch.io/docs/butler/pushing.html
- name: Upload Android to itch.io
if: ${{ github.event_name == 'release' }}
run: butler push apps/stage-pocket/bundle/${{ env.BUNDLE_NAME }} nekomeowww/airi:android --userversion ${{ env.VERSION }}
env:
BUTLER_API_KEY: ${{ secrets.GAME_PUBLISHING_ITCHIO }}

View file

@ -462,3 +462,25 @@ jobs:
apps/stage-tamagotchi/bundle/${{ env.PRODUCT_NAME }}-*.flatpak
apps/stage-tamagotchi/bundle/latest-*.yml
append_body: true
- name: Setup butler
uses: remarkablegames/setup-butler@v2
# https://itch.io/docs/butler/pushing.html
- name: Upload macOS (arm64) to itch.io
if: ${{ github.event_name == 'release' && matrix.os == 'macos-26' }}
run: butler push apps/stage-tamagotchi/bundle/${{ env.BUNDLE_NAME }} nekomeowww/airi:osx --userversion ${{ env.VERSION }}
env:
BUTLER_API_KEY: ${{ secrets.GAME_PUBLISHING_ITCHIO }}
- name: Upload Windows (x64) to itch.io
if: ${{ github.event_name == 'release' && matrix.os == 'windows-latest' }}
run: butler push apps/stage-tamagotchi/bundle/${{ env.BUNDLE_NAME }} nekomeowww/airi:win --userversion ${{ env.VERSION }}
env:
BUTLER_API_KEY: ${{ secrets.GAME_PUBLISHING_ITCHIO }}
- name: Upload Linux (arm64/amd64) to itch.io
if: ${{ github.event_name == 'release' && (matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm') }}
run: butler push apps/stage-tamagotchi/bundle/${{ env.BUNDLE_NAME }} nekomeowww/airi:linux --userversion ${{ env.VERSION }}
env:
BUTLER_API_KEY: ${{ secrets.GAME_PUBLISHING_ITCHIO }}