-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.02 KB
/
deploy-github-pages.yml
File metadata and controls
35 lines (32 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Workflow name
name: Publish Storybook
on:
# Event for the workflow to run on
push:
branches:
- 'main' # Replace with the branch you want to deploy from
permissions:
contents: read
pages: write
id-token: write
# List of jobs
jobs:
deploy:
runs-on: ubuntu-latest
# Job steps
steps:
# Manual Checkout
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
fetch-depth: 0
# Set up Node
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
with:
node-version: '24'
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- uses: bitovi/github-actions-storybook-to-github-pages@ddd9d35f670cceedd2bfc444be681001b0709730 # v1.0.4
with:
install_command: npm ci # default: npm ci
build_command: npm run storybook:build # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false # default: true