From af01f76a233fe0ad61f900c6036fd0b124e041d9 Mon Sep 17 00:00:00 2001 From: nonk123 Date: Tue, 28 May 2024 18:28:34 +0300 Subject: [PATCH] Separate build and upload jobs on native Windows doesn't support the butler push workflow. --- .github/workflows/build-native.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-native.yaml b/.github/workflows/build-native.yaml index 3c0572e..7813c38 100644 --- a/.github/workflows/build-native.yaml +++ b/.github/workflows/build-native.yaml @@ -55,11 +55,19 @@ jobs: with: name: ${{matrix.config.fancy_name}} path: ${{matrix.config.name}}.tar + upload: + name: Upload channel ${{matrix.distribution}} to itch.io + runs-on: ubuntu-latest + needs: build + strategy: + matrix: + distribution: [linux-gnu, windows-msvc] + steps: - name: Upload to itch.io uses: manleydev/butler-publish-itchio-action@master env: BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }} - CHANNEL: ${{matrix.config.name}} + CHANNEL: ${{matrix.distribution}} ITCH_GAME: codename-pedestrian ITCH_USER: nonk123 - PACKAGE: dist-${{matrix.config.name}} + PACKAGE: dist-${{matrix.distribution}}