From 17e756f1cc6f0823446b772d58f1f8363e68dbea Mon Sep 17 00:00:00 2001 From: Cat Flynn Date: Fri, 29 Jan 2021 17:18:39 +0000 Subject: [PATCH] add deploy script --- .gitlab-ci.yml | 9 ++++----- ci/deploy.sh | 7 +++++++ 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 ci/deploy.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e4cb04b..c1a1f29 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,10 +22,6 @@ build: .deploy: &deploy stage: deploy - variables: - BUTLER: "$HOME/bin/butler" - script: - - $BUTLER push $BUILD_DIR $ITCH_USER/$ITCH_GAME:$ITCH_TRACK dependencies: - build @@ -34,4 +30,7 @@ deploy-dev: variables: ITCH_USER: "cyndrdev" ITCH_GAME: "revival-internal-track" - ITCH_TRACK: "windows-unstable" \ No newline at end of file + ITCH_TRACK: "windows-unstable" + script: + - chmod +x ./ci/deploy.sh + - ./ci/deploy.sh $BUILD_DIR $ITCH_USER $ITCH_GAME $ITCH_TRACK diff --git a/ci/deploy.sh b/ci/deploy.sh new file mode 100644 index 0000000..c1ed5cf --- /dev/null +++ b/ci/deploy.sh @@ -0,0 +1,7 @@ +builddir=$1 +itchuser=$2 +itchgame=$3 +itchtrack=$4 +butler=$(which butler) + +$butler push $builddir "$itchuser/$itchgame:$itchtrack" \ No newline at end of file