Skip to content

Commit

Permalink
Merge pull request #1 from relsqui/master
Browse files Browse the repository at this point in the history
Support package names with spaces in them
  • Loading branch information
yeslayla authored Mar 8, 2020
2 parents 2e4b61c + 28dbb1d commit 1ce8a7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ LABEL "com.github.actions.description"="Publishes releases to Itch.io using Butl
LABEL "com.github.actions.icon"="upload"
LABEL "com.github.actions.color"="white"

RUN yum update -y

# Install Butler
ADD https://dl.itch.ovh/butler/linux-amd64/head/butler /usr/bin/
RUN chmod +x /usr/bin/butler
RUN butler upgrade --assume-yes

# Run butler push
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]
11 changes: 5 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ set -e
mkdir -p ~/.config/itch
echo $BUTLER_CREDENTIALS > ~/.config/itch/butler_creds


versionArguement=""
versionArgument=""

if [ "$VERSION" != "" ]
then
versionArguement="--userversion ${VERSION}"
versionArgument="--userversion ${VERSION}"
elif [ "$VERSION_FILE" != "" ]
then
versionArguement="--userversion-file ${VERSION_FILE}"
versionArgument="--userversion-file ${VERSION_FILE}"
fi

echo "butler push $PACKAGE $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArguement}"
butler push $PACKAGE $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArguement}
echo "butler push \"$PACKAGE\" $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArgument}"
butler push "$PACKAGE" $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArgument}

0 comments on commit 1ce8a7c

Please sign in to comment.