ci(rollbar): Add Rollbar script during CI deploy

This commit is contained in:
Erik Ziegler 2019-06-26 22:46:08 +02:00
parent 5807a948b6
commit 81cb9d3a75
2 changed files with 16 additions and 0 deletions

View File

@ -170,6 +170,7 @@ jobs:
name: 'Build Demo Site, Upload SourceMaps, Send Deploy Notification'
command: |
yarn build:demo:ci
perl -i -pe 's#</head>#`cat .circleci/rollbar.html` #e' build/index.html
export FILE_1=$(find ./build/static/js -type f -name "2.*.js" -exec basename {} \;)
export FILE_MAIN=$(find ./build/static/js -type f -name "main.*.js" -exec basename {} \;)
export FILE_RUNTIME_MAIN=$(find ./build/static/js -type f -name "runtime~main.*.js" -exec basename {} \;)

15
.circleci/rollbar.html Normal file

File diff suppressed because one or more lines are too long