diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 6ecd91bb..1b27d739 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -10,6 +10,11 @@ on: branches: - '**' +env: + ITCH_USERNAME: redzuzu # Replace with your itch.io username + ITCH_GAME_ID: stellar-xipher # Replace with your itch.io game ID + + jobs: buildForAllSupportedPlatforms: name: Build for ${{ matrix.targetPlatform }} (${{ matrix.unityVersion }}) @@ -106,4 +111,24 @@ jobs: files: | /tmp/zipped_builds/build_${{ matrix.targetPlatform }}.zip md5sum: true - sha256sum: false \ No newline at end of file + sha256sum: false + + publishToItch: + name: Publish to itch.io + runs-on: ubuntu-latest + needs: buildForAllSupportedPlatforms + strategy: + matrix: + targetPlatform: + - StandaloneWindows64 + - StandaloneLinux64 + steps: + - name: Publish to itch.io + uses: KikimoraGames/itch-publish@v0.0.3 + with: + butlerApiKey: ${{ secrets.BUTLER_API_KEY }} + gameData: /tmp/zipped_builds/build_${{ matrix.targetPlatform }}.zip + itchUsername: ${{ env.ITCH_USERNAME }} + itchGameId: ${{ env.ITCH_GAME_ID }} + buildChannel: ${{ matrix.targetPlatform }} + buildNumber: ${{ needs.buildForAllSupportedPlatforms.outputs.tag.name }}