Skip to content

get some more things fixed #2

get some more things fixed

get some more things fixed #2

name: Deploy Storybook to GitHub Pages
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- run: npm run build # build the adapter first
- run: npm install
working-directory: demo
- run: npm run build-storybook
working-directory: demo
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: demo/storybook-static