File tree Expand file tree Collapse file tree 1 file changed +21
-19
lines changed Expand file tree Collapse file tree 1 file changed +21
-19
lines changed Original file line number Diff line number Diff line change 1- # Workflow name
21name : Build and Publish Storybook to GitHub Pages
3-
2+
43on :
5- # Event for the workflow to run on
64 push :
75 branches :
8- - ' storybook-resurrect' # Replace with the branch you want to deploy from
9-
6+ - ' storybook-resurrect'
7+
108permissions :
119 contents : read
1210 pages : write
1311 id-token : write
14-
15- # List of jobs
12+
1613jobs :
17- deploy :
14+ build :
1815 runs-on : ubuntu-latest
19- # Job steps
2016 steps :
21- # Manual Checkout
2217 - uses : actions/checkout@v4
23- with :
24- fetch-depth : 0
25- # Set up Node
18+
2619 - uses : actions/setup-node@v4
2720 with :
2821 node-version : ' 20'
29- # 👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
30- 22+
23+ - run : yarn install
24+
25+ - run : yarn build-storybook
26+
27+ - uses : actions/upload-pages-artifact@v3
3128 with :
32- install_command : yarn install # default: npm ci
33- build_command : yarn build-storybook # default: npm run build-storybook
34- path : storybook-static # default: dist/storybook
35- checkout : false # default: true
29+ path : ./storybook-static
30+
31+ deploy :
32+ runs-on : ubuntu-latest
33+ needs : build
34+ environment :
35+ name : github-pages
36+ steps :
37+ - uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments