RocketChat / EmbeddedChat

An easy to use full-stack component (ReactJS) embedding Rocket.Chat into your webapp
https://www.npmjs.com/package/@embeddedchat/react
107 stars 214 forks source link

feat: added workflow to deploy storybook on github pages #586

Open Spiral-Memory opened 4 weeks ago

Spiral-Memory commented 4 weeks ago

Brief Title

Adding a workflow script "deploy.yaml" to deploy the app on GitHub Pages

Acceptance Criteria Fulfillment

Fixes #585

Video/Screenshots

Tested the workflow on my forked repo.

Currently, this connects to a locally hosted RC server. Maybe you can add environment variables to use another hosted RC server.

image

Spiral-Memory commented 4 weeks ago

Hey @sidmohanty11 ,

Take a look at this PR. I've added a workflow to deploy our EC Storybook app to GitHub Pages. I've tested the script on my forked repo: https://spiral-memory.github.io/EmbeddedChat/?path=/story/embeddedchat-simple--simple, and currently, it connects to a locally hosted server if available.

Please suggest any additions or improvements. I'm not very familiar with automated workflows, so please guide me further on this.