diff --git a/.circleci/config.yml b/.circleci/config.yml index 51cb3e1dd8f..ae559eb988a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -157,6 +157,14 @@ jobs: - run: yarn run build-style-spec - run: yarn run build-flow-types - run: yarn run test-build + - deploy: + name: Trigger memory metrics when merging to master + command: | + if [ -n "${WEB_METRICS_TOKEN}" ]; then + if [[ $CIRCLE_BRANCH == master ]]; then + curl -X POST https://circleci.com/api/v1.1/project/github/mapbox/web-metrics/build?circle-token=${WEB_METRICS_TOKEN} + fi + fi - store_artifacts: path: "dist" - store_artifacts: