-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy storybook site to production (#1439)
* adds out* to gitignore * adds command to build and deploy storybook * adds lock * adds build to circleCI * cd client * why webpack * build static * adds webpack * update * fetches the translations first * first build then deploy * global * locales * --ci * no need for build :) * gitignore * surge * yml * cd client * new job deploy-storybook * rm storybook job * rm job * adds job * adds whole job * requires * typo * job * adds defaults * sudo * with ruby * with ruby * cleans job * sudo * commands * npm is in * ache * tmp * same to build * builds only from master * and reverts * and cleans * only master * ifme.surge.sh
- Loading branch information
1 parent
7ebcb76
commit e0b8e36
Showing
4 changed files
with
2,521 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,6 +130,42 @@ jobs: | |
name: Deploy Master to Heroku | ||
command: | | ||
git push https://heroku:[email protected]/ifme.git master | ||
deploy-storybook: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: ~/ifmeorg/ifme/tmp | ||
- run: | ||
working_directory: ~/ifmeorg/ifme | ||
command: rm -f ifmeorg/ifme/.rvmrc; echo 2.6.0 > ifmeorg/ifme/.ruby-version; rvm use 2.6.0 --default | ||
- run: | ||
working_directory: ~/ifmeorg/ifme | ||
command: nvm install 11.10.1 && nvm alias default 11.10.1 | ||
- restore_cache: | ||
keys: | ||
- v1-dep-{{ .Branch }}- | ||
- v1-dep-master- | ||
- v1-dep- | ||
- run: gem install bundler | ||
- run: bundle install --path=vendor/bundle --jobs=4 --retry=3 | ||
- run: rm -rf ~/.yarn | ||
- run: npm i -g yarn | ||
- run: yarn install | ||
- run: | ||
name: Deploy Storybook | ||
command: | | ||
cd client | ||
yarn build:storybook | ||
mv .out .public | ||
yarn run surge --project .public --domain ifme.surge.sh | ||
- save_cache: | ||
key: v1-dep-{{ .Branch }}-{{ epoch }} | ||
paths: | ||
- ~/.cache/yarn | ||
- ./node_modules | ||
- ./vendor/bundle | ||
|
||
workflows: | ||
version: 2 | ||
build-test: | ||
|
@@ -173,3 +209,9 @@ workflows: | |
ignore: /.*/ | ||
tags: | ||
only: /^v[0-9]+\.[0-9]+\.[0-9]+/ | ||
- deploy-storybook: | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /^v[0-9]+\.[0-9]+\.[0-9]+/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ translations.js | |
default.js | ||
/coverage | ||
/storybook-static | ||
/.out*/* | ||
/.public*/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.