Skip to content

Deploy dev storybook showcase #9

Deploy dev storybook showcase

Deploy dev storybook showcase #9

Workflow file for this run

name: Deploy dev storybook showcase
env:
BUILD_DIR : "storybook-static/"
on:
# TODO: enable auto-deploy once all quality gates are set
# push:
# branches:
# - develop
workflow_dispatch:
jobs:
deploy_dev:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Build storybook
run: npm run build:storybook
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./${{ env.BUILD_DIR }}
publish_branch: gh-pages
commit_message: ${{ github.event.head_commit.message }}