add deploy script

This commit is contained in:
Cat Flynn 2021-01-29 17:18:39 +00:00
parent f2dca5b597
commit 17e756f1cc
2 changed files with 11 additions and 5 deletions

View File

@ -22,10 +22,6 @@ build:
.deploy: &deploy .deploy: &deploy
stage: deploy stage: deploy
variables:
BUTLER: "$HOME/bin/butler"
script:
- $BUTLER push $BUILD_DIR $ITCH_USER/$ITCH_GAME:$ITCH_TRACK
dependencies: dependencies:
- build - build
@ -34,4 +30,7 @@ deploy-dev:
variables: variables:
ITCH_USER: "cyndrdev" ITCH_USER: "cyndrdev"
ITCH_GAME: "revival-internal-track" ITCH_GAME: "revival-internal-track"
ITCH_TRACK: "windows-unstable" ITCH_TRACK: "windows-unstable"
script:
- chmod +x ./ci/deploy.sh
- ./ci/deploy.sh $BUILD_DIR $ITCH_USER $ITCH_GAME $ITCH_TRACK

7
ci/deploy.sh Normal file
View File

@ -0,0 +1,7 @@
builddir=$1
itchuser=$2
itchgame=$3
itchtrack=$4
butler=$(which butler)
$butler push $builddir "$itchuser/$itchgame:$itchtrack"