butler-publish-itchio-action/entrypoint.sh
Joseph Manley 79d216d21a Intial dockerized version of butler
Fix exec

cat -> echo

Push package

then
2019-11-30 22:24:11 -05:00

18 lines
366 B
Bash

#!/bin/sh
set -e
mkdir -p ~/.config/itch
echo $BUTLER_CREDENTIALS > ~/.config/itch/butler_creds
versionArguement=""
if [ "$VERSION" != "" ]
then
versionArguement="--userversion ${VERSION}"
elif [ "$VERSION_FILE" != "" ]
then
versionArguement="--userversion-file ${VERSION_FILE}"
fi
butler push $PACKAGE $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArguement}