revival/.gitlab-ci.yml

37 lines
626 B
YAML
Raw Normal View History

2021-01-25 20:44:17 +01:00
stages:
- build
2021-01-29 16:14:15 +01:00
- deploy
2021-01-25 20:44:17 +01:00
variables:
GIT_STRATEGY: fetch
UNITY_VERSION: 2020.2.2f1
2021-01-29 16:14:15 +01:00
SRC_DIR: ./game
BUILD_DIR: ./game/Build
2021-01-29 16:18:20 +01:00
build:
2021-01-25 20:44:17 +01:00
stage: build
script:
- chmod +x ./ci/build.sh
2021-01-25 21:06:58 +01:00
- ./ci/build.sh $UNITY_VERSION
2021-01-25 20:44:17 +01:00
artifacts:
name: $CI_PROJECT_NAME-$CI_PIPELINE_ID
paths:
2021-01-29 16:14:15 +01:00
- $BUILD_DIR
.deploy: &deploy
stage: deploy
variables:
2021-01-29 16:57:45 +01:00
BUTLER: "$HOME/bin/butler"
2021-01-29 16:14:15 +01:00
script:
2021-01-29 16:57:45 +01:00
- $BUTLER push $BUILD_DIR $ITCH_USER/$ITCH_GAME:$ITCH_TRACK
2021-01-29 16:37:52 +01:00
dependencies:
- build
2021-01-29 16:14:15 +01:00
deploy-dev:
2021-01-29 16:18:20 +01:00
<<: *deploy
2021-01-29 16:14:15 +01:00
variables:
ITCH_USER: "cyndrdev"
ITCH_GAME: "revival-internal-track"
ITCH_TRACK: "windows-unstable"