-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 129e5b6
Showing
24 changed files
with
197 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./ | ||
with: | ||
butlerApiKey: ${{ secrets.BUTLER_API_KEY }} | ||
gameData: ./testBuild | ||
itchUsername: ${{ secrets.ITCH_USERNAME }} | ||
itchGameId: ${{ secrets.ITCH_GAME_ID }} | ||
buildChannel: "html5" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM ghcr.io/kikimoragames/butler:latest | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
RUN chmod +x entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Kikimora Games | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Itch.io - Publish GitHub Action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: "Itch.io - Publish" | ||
description: "Publish releases to Itch.io" | ||
author: KikimoraGames | ||
runs: | ||
using: docker | ||
image: Dockerfile | ||
branding: | ||
icon: upload-cloud | ||
color: red | ||
inputs: | ||
butlerApiKey: | ||
description: 'Butler API Key' | ||
required: true | ||
gameData: | ||
description: 'Directory or .zip file of the game data. Zip files are slower to upload.' | ||
required: true | ||
itchUsername: | ||
description: 'Itch.io username of the game owner. e.g. in finji/overland this would be finji.' | ||
required: true | ||
itchGameId: | ||
description: "Itch.io id of the game. e.g. in finji/overland this would be overland." | ||
required: true | ||
buildChannel: | ||
description: "Channel name of the game: https://itch.io/docs/butler/pushing.html#channel-names" | ||
required: true | ||
buildNumber: | ||
description: "Optional build number, use to supply your own build version instead of using itch's versioning" | ||
required: false | ||
buildNumberFile: | ||
description: "Optional build number file path, 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." | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
export BUTLER_API_KEY=$INPUT_BUTLERAPIKEY | ||
|
||
if [ -z "$BUTLER_API_KEY" ] ; then | ||
echo "BUTLER_API_KEY not set. Follow instructions on https://itch.io/docs/butler/login.html#running-butler-from-ci-builds-travis-ci-gitlab-ci-etc to get your key." | ||
exit 1 | ||
fi | ||
|
||
src=$INPUT_GAMEDATA | ||
itchUsername=$INPUT_ITCHUSERNAME | ||
itchGameId=$INPUT_ITCHGAMEID | ||
buildChannel=$INPUT_BUILDCHANNEL | ||
|
||
flags="" | ||
|
||
if [ ! -z "$INPUT_BUILDNUMBER" ] | ||
then | ||
flags="${flags} --userversion ${INPUT_BUILDNUMBER}" | ||
elif [ ! -z "$INPUT_BUILDNUMBERFILE" ] | ||
then | ||
flags="${flags} --userversion-file ${INPUT_BUILDNUMBERFILE}" | ||
fi | ||
|
||
butler push "${src}" $itchUsername/$itchGameId:$buildChannel $flags |
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.