Skip to content

Merge pull request #65 from Byongho96/main #25

Merge pull request #65 from Byongho96/main

Merge pull request #65 from Byongho96/main #25

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- 'docs'
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.16'
- name: Cache Node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Build Library
run: npm run build
- name: Build Documentation
run: |
cd docs
npm ci
npm run build
- name: Deploy Documentation to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build
destination_dir: '.'
- name: Build Storybook
run: npm run build-storybook
- name: Deploy Storybook to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: storybook-static
destination_dir: 'storybook'