diff --git a/.circleci/config.yml b/.circleci/config.yml index 07d8e98c8..ecbd0d8dd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,3 +30,16 @@ jobs: - store_artifacts: path: doc/_build/html/ destination: html + - deploy: + name: github pages deployment + command: | + source activate testenv + if [ "${CIRCLE_BRANCH}" == "master" ]; then + echo "Deploying dev docs."; + git config --global user.email "circle@mne.com"; + git config --global user.name "Circle Ci"; + cd doc; + make install; + else + echo "No deployment (build: ${CIRCLE_BRANCH})."; + fi diff --git a/doc/Makefile b/doc/Makefile index 74ab7b6c1..904b155b3 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -147,6 +147,5 @@ install: cp -r html/* mne_bids.github.io && \ cd mne_bids.github.io && \ git add * && \ - git add .nojekyll && \ git commit -a -m 'Make install' && \ git push