Skip to content

Instantly share code, notes, and snippets.

@bitbrain
Last active October 16, 2016 13:13
Show Gist options
  • Save bitbrain/12c6db5e60ebaa03cb22de80f749fb73 to your computer and use it in GitHub Desktop.
Save bitbrain/12c6db5e60ebaa03cb22de80f749fb73 to your computer and use it in GitHub Desktop.

Hi Amos, I'm currently implementing auto-deployment for a game. For this I wrote a deployment script which does the following:

  1. Build the game
  2. Zip it as 'game.zip'
  3. Download butler executable
  4. Read itch API token from Environment and save it into temporary butler_creds file (set in Travis CI or locally)
  5. Login into butler via butler login -i "butler_creds"
  6. Itch IO claims: itch.io API error: invalid key

What shall I do?

echo "Deploying to itch.io.."
wget https://dl.itch.ovh/butler/darwin-amd64/head/butler
chmod +x butler
butler -V
touch butler_creds
echo "secret-API-token-goes-here" >> butler_creds
butler login -i "butler_creds"
```
@chismar
Copy link

chismar commented Oct 16, 2016

Any luck with it? Got the same problem when started to implement CI for my game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment