Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

[FE] feat: 스토리북 배포 #4

[FE] feat: 스토리북 배포

[FE] feat: 스토리북 배포 #4

Workflow file for this run

name: Deploy Storybook
on:
pull_request:
branches: develop
paths:
- frontend/**
defaults:
run:
working-directory: ./frontend
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
cache-dependency-path: ${{ vars.FE_DIRECTORY }}/yarn.lock
- name: Install dependencies
run: |
yarn install --frozen-lockfile
working-directory: ${{ vars.FE_DIRECTORY }}
- name: Build storybook
run: |
yarn build-storybook
mkdir ./dist
mv ./storybook-static ./dist/storybook
- name: Deploy to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./frontend/dist