Skip to content

Commit

Permalink
ci: allow publication to netlify from circle
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Sep 15, 2020
1 parent b82af30 commit 250a5c6
Show file tree
Hide file tree
Showing 4 changed files with 2,688 additions and 89 deletions.
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,20 @@ jobs:
- run: git config --global user.email "[email protected]" && git config --global user.name "CircleCI"
- run: yarn gh-pages -d documentation/dist -m "[skip ci] update demonstration site" -t

publish-preview:
executor: node

steps:
- downstream
- restore_cache:
keys:
- v2-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
- run:
name: Installing Dependencies
command: yarn
- run: yarn docs:build
- run: yarn netlify deploy

workflows:
version: 2
build:
Expand Down Expand Up @@ -317,3 +331,6 @@ workflows:
- main
requires:
- build
- publish-preview:
requires:
- build
3 changes: 3 additions & 0 deletions .netlify/state.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"siteId": "d82430c5-c42d-4ad4-9b3f-6ca6f330a53d"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
"markdown-loader": "^5.1.0",
"marked": "^1.1.0",
"merge2": "^1.2.3",
"netlify-cli": "^2.62.0",
"node-fetch": "^2.6.0",
"npm-run-all": "^4.1.5",
"pixelmatch": "^5.1.0",
Expand Down
Loading

0 comments on commit 250a5c6

Please sign in to comment.