Skip to content

Commit 193d72e

Browse files
committed
Try github pages
1 parent d62a9fc commit 193d72e

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Workflow name
2+
name: Build and Publish Storybook to GitHub Pages
3+
4+
on:
5+
# Event for the workflow to run on
6+
push:
7+
branches:
8+
- 'main' # Replace with the branch you want to deploy from
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
# List of jobs
16+
jobs:
17+
deploy:
18+
runs-on: ubuntu-latest
19+
# Job steps
20+
steps:
21+
# Manual Checkout
22+
- uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
# Set up Node
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: '20'
29+
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
30+
- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
31+
with:
32+
install_command: npm ci # default: npm ci
33+
build_command: npm run build-storybook # default: npm run build-storybook
34+
path: storybook-static # default: dist/storybook
35+
checkout: false # default: true

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ Refer to storybook and code
1919

2020
Styling is done using tailwind and css variables. Feel free to override these variables in your own CSS.
2121

22-
### Dark mode
23-
24-
Add the `dark` class to a container containing the component to enable dark mode. Customize the dark mode by overriding the css variables used in the component. (For example `--rfs-background`)
25-
26-
2722
## Development
2823

2924
Install dependencies with

0 commit comments

Comments
 (0)