Skip to content

Cannot execute steam-deploy twice in the same CI job #79

@soundasleep

Description

@soundasleep

Bug description

It seems that if you try to push to two branches in the same CI job, this action will fail in the second step with:

mkdir: cannot create directory ‘BuildOutput’: File exists

My guess is that at https://github.com/game-ci/steam-deploy/blob/main/steam_deploy.sh#L10 it's creating a new BuildOutput directory but it's never deleted.

How to reproduce

    - name: Deploy to Steam (branch1)
      uses: game-ci/steam-deploy@v3
      with:
        username: ...
        configVdf: ...
        appId: ...
        buildDescription: todo
        rootPath: desktop/build
        depot2Path: package/
        releaseBranch: branch1
    - name: Deploy to Steam (branch2)
      uses: game-ci/steam-deploy@v3
      with:
        username: ...
        configVdf: ...
        appId: ...
        buildDescription: todo
        rootPath: desktop/build
        depot2Path: package/
        releaseBranch: branch2

Expected behavior

It should be possible to push the same build to two Steam branches within the same CI job.

Additional details

Potential workarounds:

  • Maybe steam-deploy can rm -rf BuildOutput once the build has successfully uploaded
  • Or the BuildOutput directory name is randomly generated per build
  • Another workaround is probably running two CI jobs concurrently, one for each Steam branch, but Password: FAILED (Invalid Password) #62 (comment) reported that it may not be possible to upload two Steam branches at the same time

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions