File tree 1 file changed +13
-10
lines changed
1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,13 @@ jobs:
28
28
deploy :
29
29
environment :
30
30
name : github-pages
31
- url : ${{ steps.build-publish .outputs.page_url }}
31
+ url : ${{ steps.deploy .outputs.page_url }}
32
32
runs-on : ubuntu-latest
33
33
needs : retrieve_pages_url
34
34
# Job steps
35
35
steps :
36
36
# Manual Checkout
37
37
- uses : actions/checkout@v4
38
- with :
39
- fetch-depth : 0
40
38
# Install pnpm
41
39
- name : Install pnpm
42
40
uses : pnpm/action-setup@v4
@@ -47,13 +45,18 @@ jobs:
47
45
node-version : 22
48
46
cache : " pnpm"
49
47
cache-dependency-path : " ./pnpm-lock.yaml"
50
- # 👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
51
-
52
- id : build-publish
48
+ # Install dependencies
49
+ - run : pnpm install
50
+ # Build
51
+ - id : build
53
52
env :
54
53
PAGES_URL : ${{ needs.retrieve_pages_url.outputs.pages_url }}
54
+ run : pnpm build-storybook
55
+ # Upload
56
+ - uses : actions/upload-pages-artifact@v3
55
57
with :
56
- install_command : pnpm install
57
- build_command : pnpm build-storybook
58
- path : storybook-static # default: dist/storybook
59
- checkout : false # default: true
58
+ path : " storybook-static"
59
+ # Deploy
60
+ - id : deploy
61
+ name : Deploy to GitHub Pages
62
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments