From fa5a0bce816ff9c20d0c451358cca1677ff1b35c Mon Sep 17 00:00:00 2001 From: Nathan Curtis Date: Tue, 26 Nov 2024 13:45:30 -0800 Subject: [PATCH] [TM-1493] Deploy storybook to github pages. --- .github/workflows/deploy-github-storybook.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/deploy-github-storybook.yml diff --git a/.github/workflows/deploy-github-storybook.yml b/.github/workflows/deploy-github-storybook.yml new file mode 100644 index 000000000..fd9d9b3c8 --- /dev/null +++ b/.github/workflows/deploy-github-storybook.yml @@ -0,0 +1,29 @@ +# Workflow taken from the Storybook docs: https://storybook.js.org/docs/sharing/publish-storybook#github-pages +name: Build and Publish Storybook to GitHub Pages + +on: + push: + branches: + - 'task/TM-1493-github-storybook' # TODO update to 'staging' before PR + +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.x' + + - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3 + with: + install_command: yarn install + build_command: yarn build-storybook + path: storybook-static + checkout: false