Skip to content

Commit

Permalink
CX-16614 - ci: adding github action (#1807)
Browse files Browse the repository at this point in the history
* ci: udding  github action

adding new workflow to github actions to deploy storybook to github pages

* ci: fixing typo in github action

renaming file to fix typo

---------

Co-authored-by: James Nestor <87858909+NotNestor@users.noreply.github.com>
  • Loading branch information
mruane1 and NotNestor authored Oct 22, 2024
1 parent ffd0229 commit f2b7e51
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy_to_github_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Publish Storybook to GitHub Pages

on:
push:
branches: ["master"]

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20'

# github workflows only run from root directory
# the wc-dist build command is run from root but accesses the web-components directory
# so we need to ensure dependencies are installed - hence two separate yarn install commands
- name: Install Dependencies
run: cd ./web-components && yarn install

- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
with:
install_command: yarn install
build_command: yarn storybook:wc-dist
path: ./web-components/.out
checkout: false

0 comments on commit f2b7e51

Please sign in to comment.