Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy storybook site to production #1439

Merged
merged 45 commits into from
Apr 11, 2019
Merged

Deploy storybook site to production #1439

merged 45 commits into from
Apr 11, 2019

Conversation

paschalidi
Copy link
Member

@paschalidi paschalidi commented Apr 7, 2019

👋 👋 hello fellow contributors 🌸

Description

The goal is to have a page with static storybook deployed.
I aborted storybook-deployer as it was complaining quite a lot for no good reason (one that I could understand at least 😅).
We use surge instead to deploy the static storybook website on https://storybook-ifme.surge.sh
The logic behind is the same, no static code committed on master. Storybook is getting build and deployed via surge during the CI time.

The new job that has been added on this PR deploy-storybook will be triggered only when a PR is merged on master as we dont want storybook to be deployed on every PR one makes.

Corresponding Issue

Closes #1390

Test Coverage

This PR contains only infrastructural work thus no tests have been written.

@paschalidi paschalidi requested a review from julianguyen April 7, 2019 17:24
@welcome
Copy link

welcome bot commented Apr 7, 2019

Thank you for opening this pull request with us! Be sure to follow our Pull Request Practices. Let us know if you have any questions on Slack.

@paschalidi paschalidi changed the title Pr 1391 Deploy storybook site to production Apr 7, 2019
@paschalidi paschalidi changed the title Deploy storybook site to production WIP - Deploy storybook site to production Apr 7, 2019
@paschalidi paschalidi changed the title WIP - Deploy storybook site to production Deploy storybook site to production Apr 7, 2019
@paschalidi
Copy link
Member Author

paschalidi commented Apr 7, 2019

@julianguyen this is now ready for review !! 🎉 🎆 Sorry for the huuuuuuge list of commits when you make this tasks with the CI it can get a bit ugly 😥.

julianguyen
julianguyen previously approved these changes Apr 9, 2019
Copy link
Member

@julianguyen julianguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woo awesome work!

cd client
yarn build:storybook
mv .out .public
yarn run surge --project .public --domain storybook-ifme.surge.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rename this to ifme.surge.sh and I can point if-me.org/design to this url!

Copy link
Member

@julianguyen julianguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WOOoo!

@julianguyen julianguyen merged commit e0b8e36 into master Apr 11, 2019
@welcome
Copy link

welcome bot commented Apr 11, 2019

Thank you for merging this pull request with us! If you haven't already, in another pull request, please add yourself to our Contribute page.

@delete-merged-branch delete-merged-branch bot deleted the PR-1391 branch April 11, 2019 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants