mirror of
https://github.com/yeslayla/butler-publish-itchio-action.git
synced 2025-01-14 04:53:25 +01:00
21 lines
462 B
Bash
21 lines
462 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
mkdir -p ~/.config/itch
|
|
echo $BUTLER_CREDENTIALS > ~/.config/itch/butler_creds
|
|
|
|
butler upgrade
|
|
|
|
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}
|