mirror of
https://github.com/yeslayla/butler-publish-itchio-action.git
synced 2025-12-06 08:13:22 +01:00
Intial dockerized version of butler
Fix exec cat -> echo Push package then
This commit is contained in:
18
entrypoint.sh
Normal file
18
entrypoint.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/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}
|
||||
Reference in New Issue
Block a user