From 59c9852999293adaeee4c036b64ca65182879e92 Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 18 May 2018 14:03:02 -0700 Subject: [PATCH] ci - add docs publish to job-publish-release --- .circleci/config.yml | 9 +++++++++ package.json | 1 + 2 files changed, 10 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9db2016bc..243c880be 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -80,6 +80,7 @@ workflows: requires: - prep-deps-npm - prep-build + - prep-docs - job-screens - all-tests-pass @@ -289,11 +290,19 @@ jobs: key: dependency-cache-{{ .Revision }} - restore_cache: key: build-cache-{{ .Revision }} + - restore_cache: + key: docs-cache-{{ .Revision }} - restore_cache: key: job-screens-{{ .Revision }} - run: name: sentry sourcemaps upload command: npm run sentry:publish + - run: + name: github gh-pages docs publish + command: > + git config user.name metamaskbot + git config user.email admin@metamask.io + gh-pages -d docs/jsdocs test-unit: docker: diff --git a/package.json b/package.json index f6338c542..19d3d40f1 100644 --- a/package.json +++ b/package.json @@ -232,6 +232,7 @@ "ganache-cli": "^6.1.0", "ganache-core": "^2.1.0", "geckodriver": "^1.11.0", + "gh-pages": "^1.1.0", "gifencoder": "^1.1.0", "gulp": "github:gulpjs/gulp#6d71a658c61edb3090221579d8f97dbe086ba2ed", "gulp-babel": "^7.0.0",