Oops. Got the from path wrong for storybook build. #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 | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
# See: https://github.com/bitovi/github-actions-storybook-to-github-pages | |
- uses: bitovi/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
build_command: "npx sb-branch-switcher --config .storybook/.branches.json" | |
path: dist/storybook-bundle | |
# Done manually so we can checkout submodule | |
checkout: false |