From 20113623aec65e186302612b2356c155bda1f26f Mon Sep 17 00:00:00 2001 From: Cat Flynn Date: Fri, 29 Jan 2021 15:14:15 +0000 Subject: [PATCH] add cd --- .gitlab-ci.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ace7db6..2e19658 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,15 @@ stages: - build +- deploy variables: GIT_STRATEGY: fetch UNITY_VERSION: 2020.2.2f1 + SRC_DIR: ./game + BUILD_DIR: ./game/Build + build: stage: build script: @@ -14,4 +18,18 @@ build: artifacts: name: $CI_PROJECT_NAME-$CI_PIPELINE_ID paths: - - ./game/Build + - $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" \ No newline at end of file