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