Skip to content

Commit 2ef7e9d

Browse files
committed
Update deployment for storybook
1 parent b861165 commit 2ef7e9d

1 file changed

Lines changed: 7 additions & 21 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,38 +29,24 @@ jobs:
2929
# Build job
3030
build:
3131
runs-on: ubuntu-latest
32+
defaults:
33+
run:
34+
working-directory: packages/react-components
3235
steps:
3336
- name: Checkout
3437
uses: actions/checkout@v4
3538
- name: Setup Node
3639
uses: actions/setup-node@v4
3740
with:
3841
node-version: '20'
39-
- name: Install docs dependencies
40-
run: |
41-
cd docs
42-
npm install
43-
- name: Install demo dependencies
42+
- name: Install component dependencies
4443
run: npm install
45-
- name: Build docs
46-
run: |
47-
cd docs
48-
npm run build
49-
- name: Build demo
50-
run: npm run build
51-
env:
52-
VITE_BASE_URL: /strudel-kit/demo/
44+
- name: Build storybook docs
45+
run: npm run build-storybook
5346
- name: Deploy docs
5447
run: |
5548
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
56-
cd docs
57-
npx gh-pages -d build -e docs -u "github-actions-bot <support+actions@github.com>"
58-
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60-
- name: Deploy demo
61-
run: |
62-
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
63-
npx gh-pages -d dist -e demo -u "github-actions-bot <support+actions@github.com>"
49+
npx gh-pages -d storybook-static -e docs -u "github-actions-bot <support+actions@github.com>"
6450
env:
6551
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6652
# This is necessary to fix a bug in GitHub Pages

0 commit comments

Comments
 (0)