Skip to content

Commit

Permalink
[CHORE] storybook 배포 자동화 (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
wzrabbit authored Sep 15, 2024
1 parent c7a9ae6 commit 77c7a0a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/storybook-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy Storybook

on:
push:
branches: ['totamjung-react']

jobs:
build-and-deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Dependencies
run: |
npm ci
- name: Build Storybook
run: |
npm run build-storybook
- name: Deploy Storybook
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static
publish_branch: storybook-deploy

0 comments on commit 77c7a0a

Please sign in to comment.