Skip to content

Commit c0bc4ab

Browse files
fix deploy
1 parent c8aafa6 commit c0bc4ab

4 files changed

Lines changed: 3 additions & 20 deletions

File tree

.github/workflows/cd.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,12 @@ jobs:
2222
- name: Install dependencies
2323
run: npm ci
2424

25-
- name: Build Vite app
26-
run: npm run build
27-
2825
- name: Build Storybook
2926
run: npm run build-storybook
3027

31-
- name: Prepare deployment directory
32-
run: |
33-
rm -rf public
34-
mkdir public
35-
cp -r dist/* public/
36-
mkdir -p public/storybook
37-
cp -r storybook-static/* public/storybook/
38-
39-
- name: Deploy to GitHub Pages
28+
- name: Deploy Storybook
4029
uses: peaceiris/actions-gh-pages@v4
4130
with:
4231
github_token: ${{ secrets.GITHUB_TOKEN }}
43-
publish_dir: ./public
44-
commit_message: 'Deploy Vite + Storybook [ci skip]'
32+
publish_dir: ./storybook-static
33+
commit_message: 'Deploy Storybook [ci skip]'

.storybook/main.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,5 @@ const config = {
66
'name': '@storybook/react-vite',
77
'options': {},
88
},
9-
viteFinal: (config) => {
10-
config.base = '/storybook/';
11-
return config;
12-
},
139
};
1410
export default config;

.storybook/manager-head.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

.storybook/preview-head.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)