diff --git a/.circleci/config.yml b/.circleci/config.yml index 708b5887d6bc..6be110cf27b6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,6 +7,13 @@ defaults: &defaults environment: GOBIN: /tmp/workspace/bin +docs_update: &docs_deploy + working_directory: ~/repo + docker: + - image: tendermint/docs_deployment + environment: + AWS_REGION: us-east-1 + jobs: setup_dependencies: @@ -255,12 +262,26 @@ jobs: make build-linux make localnet-start ./scripts/localnet-blocks-test.sh 40 5 10 localhost - + deploy_docs: + <<: *docs_deploy + steps: + - checkout + - run: + name: Trigger website build + command: | + export LAST_COMMIT=`git rev-parse HEAD` + export DOCS_COMMIT=`git log -1 --format=format:%H --full-diff docs` + if [[ $DOCS_COMMIT == $LAST_COMMIT ]]; then + chamber exec cosmos-sdk -- start_website_build + else + echo "No changes to docs detected" + fi workflows: version: 2 test-suite: jobs: + - deploy_docs - setup_dependencies - lint: requires: diff --git a/PENDING.md b/PENDING.md index 0c3aeea5f1c4..c3549d898e5c 100644 --- a/PENDING.md +++ b/PENDING.md @@ -41,7 +41,7 @@ IMPROVEMENTS * Gaia - #2773 Require moniker to be provided on `gaiad init`. - #2672 [Makefile] Updated for better Windows compatibility and ledger support logic, get_tools was rewritten as a cross-compatible Makefile. - + - [#110](https://github.com/tendermint/devops/issues/110) Updated CircleCI job to trigger website build when cosmos docs are updated. * SDK - [x/mock/simulation] [\#2720] major cleanup, introduction of helper objects, reorganization