validated ci config

This commit is contained in:
Cat Flynn 2021-01-29 18:46:49 +00:00
parent a155d0e414
commit d28a2b22c5
1 changed files with 5 additions and 10 deletions

View File

@ -9,6 +9,7 @@ variables:
SRC_DIR: ./game SRC_DIR: ./game
BUILD_DIR: ./game/Build BUILD_DIR: ./game/Build
DEV_BRANCH: feature/cd
build: build:
stage: build stage: build
@ -20,15 +21,10 @@ build:
paths: paths:
- $BUILD_DIR - $BUILD_DIR
.deploy: &deploy
stage: deploy
dependencies:
- build
deploy-dev: deploy-dev:
<<: *deploy stage: deploy
rules: rules:
- if: $CI_COMMIT_BRANCH == "feature/cd" - if: $CI_COMMIT_BRANCH == $DEV_BRANCH
variables: variables:
ITCH_USER: "cyndrdev" ITCH_USER: "cyndrdev"
ITCH_GAME: "revival-internal-track" ITCH_GAME: "revival-internal-track"
@ -40,10 +36,9 @@ deploy-dev:
- build - build
deploy-release: deploy-release:
<<: *deploy stage: deploy
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG && $CI_COMMIT_BRANCH != $DEV_BRANCH
- if: $CI_COMMIT_BRANCH ~= "feature/cd"
variables: variables:
ITCH_USER: "cyndrdev" ITCH_USER: "cyndrdev"
ITCH_GAME: "revival" ITCH_GAME: "revival"