Skip to content

Commit a3ee4b2

Browse files
author
dasathyakuma
committed
gh pages
1 parent 30ce4d4 commit a3ee4b2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
- run: npm install
18+
working-directory: demo
19+
- run: npm run build-storybook
20+
working-directory: demo
21+
- uses: peaceiris/actions-gh-pages@v4
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
publish_dir: demo/storybook-static

0 commit comments

Comments
 (0)