Files
react/scripts/circleci/upload_build.sh
Dominic Gannaway 24dc43c49f fixes circleci/upload_build.sh paths for dist files (#9341)
* fixes circleci/upload_build.sh paths for dist files

* updated the react filenames to include development or production
2017-04-05 17:25:09 +01:00

20 lines
753 B
Bash
Executable File

#!/bin/bash
set -e
if [ -z $CI_PULL_REQUEST ] && [ -n "$BUILD_SERVER_ENDPOINT" ]; then
curl \
-F "react.development=@build/dist/react.development.js" \
-F "react.production.min=@build/dist/react.production.min.js" \
-F "react-dom.development=@build/dist/react-dom.development.js" \
-F "react-dom.production.min=@build/dist/react-dom.production.min.js" \
-F "react-dom-server.development=@build/dist/react-dom-server.development.js" \
-F "react-dom-server.production.min=@build/dist/react-dom-server.production.min.js" \
-F "commit=$CIRCLE_SHA1" \
-F "date=`git log --format='%ct' -1`" \
-F "pull_request=false" \
-F "token=$BUILD_SERVER_TOKEN" \
-F "branch=$CIRCLE_BRANCH" \
$BUILD_SERVER_ENDPOINT
fi