We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 141f89d commit e4951f0Copy full SHA for e4951f0
.github/examples/github-release-please.yml
.github/workflows/storybook-deploy.yml
@@ -0,0 +1,32 @@
1
+# .github/workflows/storybook-deploy.yml
2
+name: Deploy Storybook to GitHub Pages
3
+
4
+on:
5
+ push:
6
+ branches:
7
+ - main
8
9
+jobs:
10
+ deploy-storybook:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
15
+ - uses: pnpm/action-setup@v2
16
+ with:
17
+ version: 8
18
19
+ - uses: actions/setup-node@v3
20
21
+ node-version: 18
22
+ cache: 'pnpm'
23
24
+ - run: pnpm install --frozen-lockfile
25
+ - run: pnpm build # This runs "storybook build"
26
27
+ - name: Deploy to GitHub Pages
28
+ uses: peaceiris/actions-gh-pages@v3
29
30
+ github_token: ${{ secrets.GITHUB_TOKEN }}
31
+ publish_dir: ./storybook-static
32
+ publish_branch: gh-pages
0 commit comments