File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish To Github Pages
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ env :
10+ CI : false
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+ environment :
17+ name : github-pages
18+ url : ${{ steps.deployment.outputs.page_url }}
19+
20+ permissions :
21+ contents : ' read'
22+ id-token : ' write'
23+ pages : ' write'
24+ actions : ' write'
25+ checks : ' write'
26+ deployments : ' write'
27+ strategy :
28+ matrix :
29+ node-version : [18.x]
30+
31+ steps :
32+ - name : Checkout
33+ - uses : actions/checkout@v3
34+ - name : Setup Node
35+ uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
36+ with :
37+ node-version-file : ' .nvmrc'
38+ cache : npm
39+ - name : Install dependencies
40+ run : |
41+ npm ci
42+ - name : Build Storybook
43+ run : |
44+ npm run build-storybook
45+
46+ - name : Deploy
47+ uses : peaceiris/actions-gh-pages@v4
48+ with :
49+ github_token : ${{ secrets.GITHUB_TOKEN }}
50+ publish_dir : ./storybook-static
You can’t perform that action at this time.
0 commit comments