Skip to content

Commit e4951f0

Browse files
chore: add storybook publish action
1 parent 141f89d commit e4951f0

File tree

2 files changed

+32
-56
lines changed

2 files changed

+32
-56
lines changed

.github/examples/github-release-please.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./storybook-static
32+
publish_branch: gh-pages

0 commit comments

Comments
 (0)