Merge pull request #1234 from jay-hodgson/PORTALS-3252 #37
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
name: 'Publish Storybook to GitHub Pages' | |
env: | |
NODE_OPTIONS: '--max-old-space-size=4096' | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/pnpm-setup-action | |
- name: Build Storybook | |
run: pnpm nx run synapse-react-client:storybook:build | |
- name: Create .nojekyll file for GitHub Actions | |
run: touch packages/synapse-react-client/storybook-static/.nojekyll | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: packages/synapse-react-client/storybook-static |