machine:
  node:
    version: '5'
  environment:
    NODE_ENV: test
notify:
  webhooks:
    - url: https://webhooks.gitter.im/e/ba1b37fc12942c2430c9
dependencies:
  pre:
    - curl -o- -L https://yarnpkg.com/install.sh | bash
    - export PATH="$HOME/.yarn/bin:$PATH"
  override:
    - yarn install
test:
  override:
    - ./node_modules/.bin/gulp test
    - rm -rf dist
    - NODE_ENV=production ./node_modules/.bin/gulp build
    - ./node_modules/.bin/gulp pre-deploy
deployment:
  production:
    branch: master
    owner: bemusic
    commands:
      - git remote add www https://akibot:$GH_TOKEN@github.com/bemusic/bemusic.github.io.git
      - git config --global user.email "aki@spacet.me"
      - git config --global user.name "Aki running on CircleCI"
      - git log --format=%B -n 1 | egrep '^[0-9]+\.[0-9]+\.[0-9]+' && ./node_modules/.bin/gulp deploy || echo 'Not a release commit, skipped!'

machine:
  node:
    version: '5'
  environment:
    NODE_ENV: test
notify:
  webhooks:
    - url: https://webhooks.gitter.im/e/ba1b37fc12942c2430c9
dependencies:
  pre:
    - curl -o- -L https://yarnpkg.com/install.sh | bash
    - export PATH="$HOME/.yarn/bin:$PATH"
  override:
    - yarn install
test:
  override:
    - ./node_modules/.bin/gulp test
    - rm -rf dist
    - NODE_ENV=production ./node_modules/.bin/gulp build
    - ./node_modules/.bin/gulp pre-deploy
deployment:
  production:
    branch: master
    owner: bemusic
    commands:
      - git remote add www https://akibot:$GH_TOKEN@github.com/bemusic/bemusic.github.io.git
      - git config --global user.email "aki@spacet.me"
      - git config --global user.name "Aki running on CircleCI"
      - git log --format=%B -n 1 | egrep '^:bookmark: [0-9]+\.[0-9]+\.[0-9]+' && ./node_modules/.bin/gulp deploy || echo 'Not a release commit, skipped!'

Fix release detection pattern in CircleCI
:bug: Fix release detection pattern in CircleCI
