Skip to content

Commit

Permalink
Add run deploy job on master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
thojkooi committed Jul 15, 2018
1 parent 2faa337 commit e23d1cf
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@ version: 2
jobs:
build:
docker:
- image: python:3-alpine
- 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: python:3-alpine
branch: master
requires:
- build
steps:
- checkout
- run:
name: Build
command: armake --version
- deploy:
name: Deploy
name: Update documentation and translation statistics
command: |
pip install pygithub pygithub3
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

0 comments on commit e23d1cf

Please sign in to comment.