We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 185450e commit c67696eCopy full SHA for c67696e
.github/workflows/storybook.yml
@@ -0,0 +1,26 @@
1
+name: Build and Publish Storybook to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - 'main' # Change this to your main branch name if different
7
8
+permissions:
9
+ contents: read
10
+ pages: write
11
+ id-token: write
12
13
+jobs:
14
+ deploy:
15
+ environment:
16
+ name: github-pages
17
+ url: ${{ steps.build-publish.outputs.page_url }}
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - id: build-publish
21
+ uses: bitovi/[email protected]
22
+ with:
23
+ # Adjust these settings based on your project setup
24
+ path: storybook-static # Output folder from the build-storybook command
25
+ install_command: npm install # or yarn install
26
+ build_command: npm run build-storybook # or yarn build-storybook
0 commit comments