mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add run deploy job on master branch
This commit is contained in:
parent
2faa3379ae
commit
e23d1cfe17
19
circle.yml
19
circle.yml
@ -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: |
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user