File tree 1 file changed +35
-35
lines changed
1 file changed +35
-35
lines changed Original file line number Diff line number Diff line change 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 storybook:build # default: npm run build-storybook
34
- path : storybook-static # default: dist/storybook
35
- checkout : false # default: true
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 storybook:build # default: npm run build-storybook
34
+ # path: storybook-static # default: dist/storybook
35
+ # checkout: false # default: true
You can’t perform that action at this time.
0 commit comments