butler-publish-itchio-action/entrypoint.sh
2020-06-11 16:25:38 +02:00

18 lines
409 B
Bash

#!/bin/sh
set -e
export BUTLER_API_KEY=$BUTLER_CREDENTIALS
versionArgument=""
if [ "$VERSION" != "" ]
then
versionArgument="--userversion ${VERSION}"
elif [ "$VERSION_FILE" != "" ]
then
versionArgument="--userversion-file ${VERSION_FILE}"
fi
echo "butler push \"$PACKAGE\" $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArgument}"
butler push "$PACKAGE" $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArgument}