Skip to content

Use peaceiris/actions-gh-pages@v3 plugin to deploy storybook #3

Use peaceiris/actions-gh-pages@v3 plugin to deploy storybook

Use peaceiris/actions-gh-pages@v3 plugin to deploy storybook #3

name: StoryBook Deployment
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Install dependencies
run: npm install
- name: Build site
run: npm run predeploy
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GHUB_TOKEN }}
publish_dir: ./gh-pages-dist