stages: - build - deploy variables: GIT_STRATEGY: fetch UNITY_VERSION: 2020.2.2f1 SRC_DIR: ./game BUILD_DIR: ./game/Build DEV_BRANCH: feature/cd 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-dev: stage: deploy rules: - if: $CI_COMMIT_BRANCH == $DEV_BRANCH 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 dependencies: - build deploy-release: stage: deploy rules: - if: $CI_COMMIT_TAG && $CI_COMMIT_BRANCH != $DEV_BRANCH variables: ITCH_USER: "cyndrdev" ITCH_GAME: "revival" ITCH_TRACK: "windows" script: - echo "deploy release :bolb:" dependencies: - build