We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30ce4d4 commit a3ee4b2Copy full SHA for a3ee4b2
.github/workflows/storybook-pages.yml
@@ -0,0 +1,24 @@
1
+name: Deploy Storybook to GitHub Pages
2
+on:
3
+ push:
4
+ branches: [main]
5
+jobs:
6
+ deploy:
7
+ runs-on: ubuntu-latest
8
+ permissions:
9
+ contents: write
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: actions/setup-node@v4
13
+ with:
14
+ node-version: 20
15
+ - run: npm install
16
+ - run: npm run build # build the adapter first
17
18
+ working-directory: demo
19
+ - run: npm run build-storybook
20
21
+ - uses: peaceiris/actions-gh-pages@v4
22
23
+ github_token: ${{ secrets.GITHUB_TOKEN }}
24
+ publish_dir: demo/storybook-static
0 commit comments