Skip to content

Commit

Permalink
Add workbench build trigger to develop
Browse files Browse the repository at this point in the history
  • Loading branch information
lnbc1QWFyb24 committed May 6, 2020
1 parent fdf618c commit b8dc615
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ jobs:
- run: mkdir /root/project/deploy-temp/${VERSION}
- run: mv /root/project/dist/iife/*.js /root/project/deploy-temp/${VERSION}/
- run: aws s3 sync /root/project/deploy-temp/${VERSION}/ s3://sdk.blocknative.com/${VERSION}/ --content-type "text/javascript" --content-encoding "gzip" --cache-control "max-age=31536000" --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
deploy_demo:
docker:
- image: circleci/node:10.18.1-browsers
user: root
steps:
- checkout
- run: sh ./trigger-demo-build.sh $CIRCLE_TOKEN
workflows:
version: 2
test_build:
Expand All @@ -77,3 +84,8 @@ workflows:
branches:
only:
- master
- deploy_demo:
filters:
branches:
only:
- develop
1 change: 1 addition & 0 deletions trigger-demo-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
curl -X POST --header "Content-Type: application/json" -d '{"build_parameters": {"CIRCLE_JOB": "deploy_stage"}}' https://circleci.com/api/v1/project/blocknative/workbench/tree/develop?circle-token=$1

0 comments on commit b8dc615

Please sign in to comment.