add deploy script
This commit is contained in:
parent
f2dca5b597
commit
17e756f1cc
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
builddir=$1
|
||||||
|
itchuser=$2
|
||||||
|
itchgame=$3
|
||||||
|
itchtrack=$4
|
||||||
|
butler=$(which butler)
|
||||||
|
|
||||||
|
$butler push $builddir "$itchuser/$itchgame:$itchtrack"
|
Loading…
Reference in New Issue