diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml new file mode 100644 index 0000000..445d3b2 --- /dev/null +++ b/.github/workflows/deploy-storybook.yml @@ -0,0 +1,26 @@ +name: Deploy Storybook to GitHub Pages + +on: + push: + branches: + - main # Change this to the branch you want to trigger the deployment + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install dependencies + run: npm install + + - name: Build Storybook + run: npm run build-storybook + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./storybook-static