I keep getting an annoying “build failed” email seemingly because the git push
in my deploy step is triggering a build on the gh-pages
branch which I want to be ignored by circle-ci. As you can see in my config, I’ve specified to only build the master
branch. Seems like a bug?
Here is my (condensed) config.yml
version: 2
jobs:
build:
branches:
only:
- master
docker:
- image: circleci/node:10-stretch
steps:
- checkout
- deploy:
name: Deploy
command: |
cd docs/.vuepress/dist
echo 'docs.lipsurf.com' > CNAME
git config --global user.email "circleci@lipsurf.com"
git config --global user.name "Circle CI"
git init
git add -A
git commit -m 'deploy'
git push -f git@github.com:lipsurf/plugins.git master:gh-pages