machine:
  node:
    version: 5.4.0

dependencies:
  post:
    - npm install -g gulp-cli && gulp build

deployment:
  staging:
    branch: master
    commands:
      - gulp publish --target dev

  production:
    branch: production
    commands:
      - gulp publish --target prod

general:
  artifacts:
    - "dist"

machine:
  node:
    version: 5.4.0

dependencies:
  post:
    - npm install -g gulp-cli && gulp build

deployment:
  staging:
    branch: master
    commands:
      - gulp publish --target dev
      - gulp publish --target prod

general:
  artifacts:
    - "dist"

Deploy from master branch, do nothing from production branch
Deploy from master branch, do nothing from production branch