add deploy release job

This commit is contained in:
Cat Flynn 2021-01-29 18:15:09 +00:00
parent 9d2f1252ef
commit 64beb30d2b
1 changed files with 13 additions and 2 deletions

View File

@ -22,13 +22,13 @@ build:
.deploy: &deploy .deploy: &deploy
stage: deploy stage: deploy
rules:
- if: $CI_COMMIT_BRANCH == "feature/cd"
dependencies: dependencies:
- build - build
deploy-dev: deploy-dev:
<<: *deploy <<: *deploy
rules:
- if: $CI_COMMIT_BRANCH == "main"
variables: variables:
ITCH_USER: "cyndrdev" ITCH_USER: "cyndrdev"
ITCH_GAME: "revival-internal-track" ITCH_GAME: "revival-internal-track"
@ -36,3 +36,14 @@ deploy-dev:
script: script:
- chmod +x ./ci/deploy.sh - chmod +x ./ci/deploy.sh
- ./ci/deploy.sh $BUILD_DIR $ITCH_USER $ITCH_GAME $ITCH_TRACK - ./ci/deploy.sh $BUILD_DIR $ITCH_USER $ITCH_GAME $ITCH_TRACK
deploy-release:
<<: *deploy
rules:
- if: $CI_COMMIT_TAG
variables:
ITCH_USER: "cyndrdev"
ITCH_GAME: "revival"
ITCH_TRACK: "windows"
scripts:
- echo "deploy release :bolb:"