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