Skip to content

Commit

Permalink
Merge pull request #79 from blocknative/develop
Browse files Browse the repository at this point in the history
Release 2.1.3
  • Loading branch information
lnbc1QWFyb24 authored May 10, 2020
2 parents a25d201 + 56d8cb7 commit 1ca1886
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
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_workbench_staging:
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_workbench_staging:
filters:
branches:
only:
- develop
2 changes: 1 addition & 1 deletion src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function createEventLog(this: any, msg: EventObject): string {
version,
blockchain: {
system: this._system,
network: networkName(this._system, this._networkId)
network: networkName(this._system, this._networkId) || 'local'
},
...msg
})
Expand Down
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 1ca1886

Please sign in to comment.