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
7b50d4a7a6
commit
ddf7046c44
22
circle.yml
22
circle.yml
@ -2,21 +2,21 @@ version: 2
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- image: thojkooi/ci-python
|
- image: acemod/armake
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: Validate SQF And Config style
|
name: Validate SQF And Config style
|
||||||
command: python tools/sqf_validator.py && python tools/config_style_checker.py
|
command: python tools/sqf_validator.py && python tools/config_style_checker.py
|
||||||
deployment:
|
- run:
|
||||||
docker:
|
name: Build
|
||||||
- image: thojkooi/ci-python
|
command: armake --version
|
||||||
branch: master
|
|
||||||
requires:
|
|
||||||
- build
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- deploy:
|
- deploy:
|
||||||
name: Deploy
|
name: Update documentation and translation statistics
|
||||||
command: |
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user