# Action failed: Configure the build

**URL:** <https://discuss.circleci.com/t/action-failed-configure-the-build/11171>\
**Category:** Build Environment\
**Created:** [March 17, 2017, 7:58pm UTC](https://discuss.circleci.com/t/action-failed-configure-the-build/11171 "2017-03-17T19:58:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![awesomescot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/awesomescot/32/34943_2.png) [@awesomescot](https://discuss.circleci.com/u/awesomescot)\
**Post date:** [March 17, 2017, 7:58pm UTC](https://discuss.circleci.com/t/action-failed-configure-the-build/11171/1 "2017-03-17T19:58:24Z")

</div>

Not sure what this error is saying. Is there something wrong with my config file? Here is my config file:  
version: 2  
jobs:  
build:  
working\_directory: /tmp  
docker:  
- image: node:7.4.0  
steps:  
- checkout  
- run: npm install  
- run: ng build  
- deploy:  
command: |  
if [“${CIRCLE\_BRANCH}” == ‘staging’]; then  
aws s3 cp --recursive ./dist s3://my-bucket/  
fi

And here is a link to the failed build. [https://circleci.com/gh/cornelltech/uni-client/325](https://circleci.com/gh/cornelltech/uni-client/325)

Thanks.

---

<div class="post-metadata">

**Author:** ![FelicianoTech](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/felicianotech/32/21348_2.png) [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Post date:** [March 18, 2017, 12:16am UTC](https://discuss.circleci.com/t/action-failed-configure-the-build/11171/2 "2017-03-18T00:16:47Z")

</div>

Try indenting your deploy steps two more spaces?

```auto
      - deploy: 
          command: |
            if ["${CIRCLE_BRANCH}" == 'staging']; then
              aws s3 cp --recursive ./dist s3://staging-unicornucopia/
            fi

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:32am UTC](https://discuss.circleci.com/t/action-failed-configure-the-build/11171/3 "2018-06-18T11:32:27Z")

</div>


