Skip to content

Commit

Permalink
update butler version. update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOrioli committed Aug 4, 2021
1 parent 129e5b6 commit ea06fdc
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/kikimoragames/butler:latest
FROM ghcr.io/kikimoragames/butler:0.0.3

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x entrypoint.sh
Expand Down
55 changes: 54 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,54 @@
# Itch.io - Publish GitHub Action
# Itch.io - Publish GitHub Action

Helps you publish new releases to itch.io using butler.

## Inputs

| Name | Required | Description |
|---------|----------|---------------------------------------------------------------------------------------------------|
| butlerAPIKey | Yes | The secret API Key you can get by following these instructions: https://itch.io/docs/butler/login.html#running-butler-from-ci-builds-travis-ci-gitlab-ci-etc
| gameData | Yes | Directory or .zip file of the game data. Zip files are slower to upload.|
| itchUsername | Yes | username of the game owner. e.g. in `kikimora.itch.io/wizards-way-out` this would be `kikimora`|
| itchGameId | Yes | id of the game. e.g. in `kikimora.itch.io/wizards-way-out` this would be `wizards-way-out`
| buildChannel | Yes | Channel name of the game: https://itch.io/docs/butler/pushing.html#channel-names|
| buildNumber | No | Use to supply your own build version instead of using itch's versioning|
| buildNumberFile | No | use to supply your own build version instead of using itch's versioning. The file should contain a single line with the version or build number, in UTF-8 without BOM|

## Example usage

### Workflow configuration

```yaml
name: Deploy

on: push
env:
ITCH_USERNAME: my-username
ITCH_GAME_ID: my-game-id
jobs:
deploy:
name: Upload to Itch
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
channel:
- windows
- webgl
runs-on: ubuntu-latest
name: Deploy - Itch.io ${{ matrix.template }}
steps:
- uses: actions/[email protected]
with:
name: ${{ matrix.channel }}
path: build/${{ matrix.channel }}
- uses: KikimoraGames/[email protected]
with:
butlerApiKey: ${{secrets.BUTLER_API_KEY}}
gameData: ./build/${{ matrix.template }}
itchUsername: ${{env.ITCH_USERNAME}}
itchGameId: ${{ env.ITCH_GAME_ID }}
buildChannel: ${{ matrix.channel }}
buildNumber: ${{ needs.version.outputs.version_hash }}

```

0 comments on commit ea06fdc

Please sign in to comment.