File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+ steps :
16+ - name : Check out code
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Node.js v22
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : ' 22'
23+
24+ - name : Install dependencies
25+ run : npm install
26+
27+ - name : Build Storybook
28+ run : npm run storybook:build
29+
30+ - name : Upload artifact
31+ uses : actions/upload-pages-artifact@v3
32+ with :
33+ path : ./storybook-static
34+
35+ deploy :
36+ needs : build
37+ environment :
38+ name : github-pages
39+ url : ${{ steps.deployment.outputs.page_url }}
40+ runs-on : ubuntu-latest
41+ permissions :
42+ contents : read
43+ pages : write
44+ id-token : write
45+ steps :
46+ - name : Deploy to GitHub Pages
47+ id : deployment
48+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments