diff --git a/Dockerfile b/Dockerfile index d8868fb..3fd30d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 07d06bb..f9e8461 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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} \ No newline at end of file +echo "butler push \"$PACKAGE\" $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArgument}" +butler push "$PACKAGE" $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArgument}