Add config for gh-pages deploy

This commit is contained in:
rschamp committed 2019-09-23 13:59:22 -04:00
1 parent 745fa360c3
commit 4f0bf3c5aa
1 file changed
+23
+23
View File
@@ -109,6 +109,27 @@ jobs:
- run: git tag $RELEASE_VERSION
- run: git push $CIRCLE_REPOSITORY_URL $RELEASE_VERSION
deploy-gh-pages:
docker:
- image: circleci/node:8.16-browsers
working_directory: ~/repo
steps:
- restore_cache:
keys:
- v1-git-{{ .Revision }}
- v1-git-
- checkout
- run: |
git config --global user.email $(git log --pretty=format:"%ae" -n1)
git config --global user.name $(git log --pretty=format:"%an" -n1)
- restore_cache:
keys:
- v1-build-{{ .Revision }}
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
- run: npm run deploy -- -e $CIRCLE_BRANCH
deploy-requirements: &deploy-requirements
requires:
- build
@@ -128,3 +149,5 @@ workflows:
- build
- deploy-npm:
<<: *deploy-requirements
- deploy-gh-pages:
<<: *deploy-requirements