35 lines
651 B
YAML
35 lines
651 B
YAML
stages:
|
|
- build
|
|
- deploy
|
|
|
|
variables:
|
|
GIT_STRATEGY: fetch
|
|
|
|
UNITY_VERSION: 2020.2.2f1
|
|
|
|
SRC_DIR: ./game
|
|
BUILD_DIR: ./game/Build
|
|
|
|
.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
|
|
|
|
.deploy: &deploy
|
|
stage: deploy
|
|
variables:
|
|
BUTLER_KEY_FILE: "$HOME/Library/Application\ Support/itch/butler-creds"
|
|
script:
|
|
- butler push $BUILD_DIR $ITCH_USER/$ITCH_GAME:$ITCH_TRACK
|
|
|
|
deploy-dev:
|
|
<<: *build
|
|
variables:
|
|
ITCH_USER: "cyndrdev"
|
|
ITCH_GAME: "revival-internal-track"
|
|
ITCH_TRACK: "windows-unstable" |