Skip to content

Commit

Permalink
ci(setup): add workflow to deploy to GH pages
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Sep 1, 2023
1 parent 3c0e7b8 commit 744127d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Build with Vite
run: |
pnpm run build
pnpm -r run build:gh-pages
ls -la ./packages/examples/react/dist
echo "Moving dist to _site"
rm -rf _site && mv ./packages/examples/react/dist ./_site
Expand Down
1 change: 1 addition & 0 deletions packages/examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"build": "vite build",
"build:gh-pages": "vite build --base=/storylite/",
"dev": "vite --port=7007 --host=0.0.0.0 --open",
"preview": "vite preview --port=7080 --host=0.0.0.0 --open"
},
Expand Down

0 comments on commit 744127d

Please sign in to comment.