diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e956f7..3e940d9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,8 +32,15 @@ jobs: githubToken: ${{ secrets.GITHUB_TOKEN }} build: + needs: test + name: Build my project ✨ runs-on: ubuntu-latest + strategy: + fail-fast: false # if one build fails, other platforms will still be built + matrix: + targetPlatform: + - StandaloneWindows64 steps: # Checkout - name: Checkout repository @@ -57,25 +64,15 @@ jobs: UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: - targetPlatform: StandaloneWindows64 + targetPlatform: ${{ matrix.targetPlatform }} allowDirtyBuild: true - buildName: Roses + buildName: Roses-${{ matrix.targetPlatform }} - # Output - - uses: actions/upload-artifact@v3 - with: - name: Build - path: build - - deploy: - name: Deploy my project - needs: [build, test] - runs-on: ubuntu-latest - steps: + # Deploy - uses: manleydev/butler-publish-itchio-action@master - env: - BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }} - CHANNEL: ${{ targetPlatform }} - ITCH_GAME: roses - ITCH_USER: Geri8 - PACKAGE: build/ \ No newline at end of file + env: + BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }} + CHANNEL: ${{ matrix.targetPlatform }} + ITCH_GAME: roses + ITCH_USER: Geri8 + PACKAGE: build/${{ matrix.targetPlatform }} \ No newline at end of file