split dev and release dpeloy jobs

This commit is contained in:
Cat Flynn 2021-01-29 18:26:10 +00:00
parent c9d7bf98c3
commit 72e4938633
1 changed files with 7 additions and 7 deletions

View File

@ -20,15 +20,10 @@ build:
paths:
- $BUILD_DIR
.deploy: &deploy
.deploy-dev: &deploy
stage: deploy
rules:
- if: $CI_COMMIT_BRANCH == "feature/cd"
dependencies:
- build
.deploy-dev: &deploy
<<: *deploy
variables:
ITCH_USER: "cyndrdev"
ITCH_GAME: "revival-internal-track"
@ -36,14 +31,19 @@ build:
script:
- chmod +x ./ci/deploy.sh
- ./ci/deploy.sh $BUILD_DIR $ITCH_USER $ITCH_GAME $ITCH_TRACK
dependencies:
- build
.deploy-release: &deploy
<<: *deploy
stage: deploy
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == "feature/cd"
variables:
ITCH_USER: "cyndrdev"
ITCH_GAME: "revival"
ITCH_TRACK: "windows"
scripts:
- echo "deploy release :bolb:"
dependencies:
- build