mirror of
https://github.com/yeslayla/butler-publish-itchio-action.git
synced 2025-01-13 04:23:25 +01:00
Intial dockerized version of butler
Fix exec cat -> echo Push package then
This commit is contained in:
parent
e01a9949d8
commit
79d216d21a
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM centos:8
|
||||
|
||||
LABEL "com.github.actions.name"="Butler Push"
|
||||
LABEL "com.github.actions.description"="Publishes releases to Itch.io using Butler"
|
||||
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 push
|
||||
ADD entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
9
action.yml
Normal file
9
action.yml
Normal file
@ -0,0 +1,9 @@
|
||||
name: "Butler Push"
|
||||
description: "Publish releases to Itch.io using Butler"
|
||||
author: josephbmanley
|
||||
runs:
|
||||
using: docker
|
||||
image: Dockerfile
|
||||
branding:
|
||||
icon: upload
|
||||
color: white
|
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}
|
Loading…
Reference in New Issue
Block a user