2019-12-01 03:58:18 +01:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
2020-06-11 16:14:08 +02:00
|
|
|
export BUTLER_API_KEY=$BUTLER_CREDENTIALS
|
2019-12-01 03:58:18 +01:00
|
|
|
|
2020-03-08 13:07:26 +01:00
|
|
|
versionArgument=""
|
2019-12-01 03:58:18 +01:00
|
|
|
|
|
|
|
if [ "$VERSION" != "" ]
|
|
|
|
then
|
2020-03-08 13:07:26 +01:00
|
|
|
versionArgument="--userversion ${VERSION}"
|
2019-12-01 03:58:18 +01:00
|
|
|
elif [ "$VERSION_FILE" != "" ]
|
|
|
|
then
|
2020-03-08 13:07:26 +01:00
|
|
|
versionArgument="--userversion-file ${VERSION_FILE}"
|
2019-12-01 03:58:18 +01:00
|
|
|
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}
|