butler-publish-itchio-action/entrypoint.sh

18 lines
409 B
Bash
Raw Permalink Normal View History

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