revival/.gitlab-ci.yml

50 lines
964 B
YAML
Raw Normal View History

2021-01-29 18:35:49 +01:00
stages:
- build
- deploy
variables:
GIT_STRATEGY: fetch
UNITY_VERSION: 2020.2.2f1
SRC_DIR: ./game
BUILD_DIR: ./game/Build
build:
stage: build
script:
- chmod +x ./ci/build.sh
- ./ci/build.sh $UNITY_VERSION
artifacts:
name: $CI_PROJECT_NAME-$CI_PIPELINE_ID
paths:
- $BUILD_DIR
2021-01-29 19:32:36 +01:00
deploy-dev: &deploy
2021-01-29 18:35:49 +01:00
stage: deploy
2021-01-29 19:15:09 +01:00
rules:
- if: $CI_COMMIT_BRANCH == "feature/cd"
2021-01-29 18:35:49 +01:00
variables:
ITCH_USER: "cyndrdev"
ITCH_GAME: "revival-internal-track"
ITCH_TRACK: "windows-unstable"
script:
- chmod +x ./ci/deploy.sh
- ./ci/deploy.sh $BUILD_DIR $ITCH_USER $ITCH_GAME $ITCH_TRACK
2021-01-29 19:26:10 +01:00
dependencies:
- build
2021-01-29 19:15:09 +01:00
2021-01-29 19:32:36 +01:00
deploy-release: &deploy
2021-01-29 19:26:10 +01:00
stage: deploy
2021-01-29 19:15:09 +01:00
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH ~= "feature/cd"
2021-01-29 19:15:09 +01:00
variables:
ITCH_USER: "cyndrdev"
ITCH_GAME: "revival"
ITCH_TRACK: "windows"
scripts:
- echo "deploy release :bolb:"
2021-01-29 19:26:10 +01:00
dependencies:
- build