Skip to content

[Bug]: itch.io integration #12

@RedGlow

Description

@RedGlow

What happened?

I'm trying to deploy the game to itch.io. The task running is:

      - name: 🕹️ Deploy to itch.io
        if: matrix.target == 'itch.io'
        run: |
          if [ -z "${{ secrets.ITCH_USERNAME }}" ] || [ -z "${{ secrets.ITCH_PROJECT }}" ]; then
            echo "⚠️ Missing itch.io credentials."; 
            exit 1;
          fi
          butler push "$ARTIFACT_DIR" "${{ secrets.ITCH_USERNAME }}/${{ secrets.ITCH_PROJECT }}:${{ inputs.buildType }}"
        env:
          BUTLER_API_KEY: ${{ secrets.DEPLOY_API_KEY }}

The error reported is:

Run if [ -z "***" ] || [ -z "***" ]; then
  if [ -z "***" ] || [ -z "***" ]; then
    echo "⚠️ Missing itch.io credentials."; 
    exit 1;
  fi
  butler push "$ARTIFACT_DIR" "***/***:release_candidate"
  shell: /usr/bin/bash -e {0}
  env:
    DEPLOY_DIR: deployment-artifacts
    PROJECT_DIR: Riscrittora-v0.0.5-rc.5
    ARTIFACT_DIR: deployment-artifacts/Riscrittora-v0.0.5-rc.5
    BUTLER_API_KEY: ***
/home/runner/work/_temp/4e8c7f69-cf[2](https://github.com/owof-games/LaRiscrittora/actions/runs/15413131644/job/43370492177#step:11:2)f-48a3-b9c4-f3f2c39bc379.sh: line 5: butler: command not found
Error: Process completed with exit code 127.

I guess the butler executable is not installed in ubuntu-latest. Looking around, probably a simple

      - name: 🤵 Install Butler
        if: matrix.target == 'itch.io'
        uses: remarkablegames/setup-butler@v1

Or analogous setup with another action. I haven't tested this though, but I can try modifying the step-4-deploy.xml, porting it inside the project and correcting all the urls in order to add this step, but before doing it I wanted to check if I'm not missing something.

Steps to reproduce

List the steps:

  1. Ran the dispatched pipeline with itch.io and all its build targets on
  2. Got this error

Expected behavior

The butler executable to run and try to upload the build.

Workflow details

  • Workflow file: step-4-deploy.yml
  • Trigger type: workflow_dispatch
  • Inputs/parameters used:
    • buildType:
    • deployTargets: ["itch.io"]
    • buildTargets: ["WebGL"]
    • change deploy-targets.json for the itch.io entry like this:
  "itch.io": {
    "os": "ubuntu-latest",
    "requiresCombinedArtifact": false,
    "minimumBuildType": "preview",
    "compatibleBuildTargets": ["WebGL"]
  },

Environment

  • Unity version: 6000.1
  • OS: Windows 11
  • GitHub Runner: ubuntu-latest

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions