Skip to content

Commit f4153c4

Browse files
committed
ci: fix storybook gh-pages deployment
1 parent 4b5963f commit f4153c4

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/cd-storybook.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ on:
66
- main
77

88
jobs:
9-
build-and-deploy:
10-
name: Build and deploy Storybook to Github Pages
9+
deploy:
10+
environment:
11+
name: github-pages
12+
url: ${{ steps.deployment.outputs.page_url }}
1113
runs-on: ubuntu-latest
12-
1314
steps:
14-
- name: Checkout repo
15+
- name: Checkout
1516
uses: actions/checkout@v3
17+
- name: Setup Pages
18+
uses: actions/configure-pages@v3
1619

1720
- name: Use nodejs
1821
uses: actions/setup-node@v3
@@ -25,9 +28,12 @@ jobs:
2528
- name: Build storybook
2629
run: npm run build:storybook
2730

28-
- name: Deploy to Github Pages
29-
uses: JamesIves/github-pages-[email protected]
31+
- name: Upload artifact
32+
uses: actions/upload-pages-artifact@v1
3033
with:
31-
branch: gh-pages
32-
folder: storybook-static
33-
clean: true
34+
# Upload entire repository
35+
path: 'storybook-static'
36+
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)