diff options
| author | Brian Corrigan <bcorrigan78@gmail.com> | 2017-10-04 08:48:13 -0400 |
|---|---|---|
| committer | Brian Corrigan <bcorrigan78@gmail.com> | 2017-10-04 08:48:13 -0400 |
| commit | 1542bd5e0533c535a5b4410ff83f1db8956a5acd (patch) | |
| tree | 0921b175dc5aef422e667125cefe5cf748c788e1 /.circleci/circle.yml | |
| download | vainglory-docs-1542bd5e0533c535a5b4410ff83f1db8956a5acd.tar.gz vainglory-docs-1542bd5e0533c535a5b4410ff83f1db8956a5acd.zip | |
Initial commit
Diffstat (limited to '.circleci/circle.yml')
| -rw-r--r-- | .circleci/circle.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.circleci/circle.yml b/.circleci/circle.yml new file mode 100644 index 0000000..cf44ba8 --- /dev/null +++ b/.circleci/circle.yml @@ -0,0 +1,35 @@ +version: 2 +jobs: + build: + working_directory: ~/mern-starter + docker: + - image: circleci/node:8.4.0 + steps: + - checkout + # - run: + # name: update-npm + # command: 'sudo npm install -g npm@latest' + - restore_cache: + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: install-npm + command: yarn + - save_cache: + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + - run: + name: build-docs + command: | + pushd docs && + ../node_modules/.bin/gitbook install && + ../node_modules/.bin/gitbook build && + popd && + git checkout gh-pages && + git pull origin gh-pages --rebase && + cp -R docs/_book/* . && + git clean -fx node_modules && + git clean -fx docs && + git add . && + git commit -a -m "Update docs" && + git push origin gh-pages |
