diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3b46cb7..eb14b6e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,3 +27,15 @@ jobs: target: ${{ secrets.DEPLOY_PATH }} strip_components: 1 overwrite: true + - run: npm run build:storybook + - name: deploy storybook + uses: appleboy/scp-action@v0.1.3 + with: + host: ${{ secrets.DEPLOY_HOST }} + username: ${{ secrets.DEPLOY_USERNAME }} + key: ${{ secrets.DEPLOY_KEY_PRI }} + source: /storybook-static + target: ${{ secrets.DEPLOY_PATH_STORYBOOK }} + strip_components: 1 + overwrite: true + diff --git a/package.json b/package.json index c018732..c92e7af 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "test:integration": "playwright test", "test:unit": "vitest --ui --coverage", "storybook": "storybook dev -p 3002 --no-open", - "build-storybook": "storybook build" + "build:storybook": "storybook build" }, "devDependencies": { "@codemirror/lang-json": "^6.0.1",