From ddf7046c440057be777ea5ea3be484c1d0f24279 Mon Sep 17 00:00:00 2001 From: Thomas Kooi Date: Sun, 4 Feb 2018 21:38:59 +0100 Subject: [PATCH] Add run deploy job on master branch --- circle.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/circle.yml b/circle.yml index fca41b480c..2cdec68b4a 100644 --- a/circle.yml +++ b/circle.yml @@ -2,21 +2,21 @@ version: 2 jobs: build: docker: - - image: thojkooi/ci-python + - image: acemod/armake steps: - checkout - run: name: Validate SQF And Config style command: python tools/sqf_validator.py && python tools/config_style_checker.py - deployment: - docker: - - image: thojkooi/ci-python - branch: master - requires: - - build - steps: - - checkout + - run: + name: Build + command: armake --version - deploy: - name: Deploy + name: Update documentation and translation statistics command: | - python3 tools/deploy.py + if [ "${CIRCLE_BRANCH}" == "master" ] && [ "${CIRCLE_PROJECT_USERNAME}" == "acemod" ]; then + pip install pygithub pygithub3 + python3 tools/deploy.py + else + echo "Skipping, not on acemod/ACE3 master branch..." + fi