Skip to content

feat(FileCard): Adding new component FileCard (#31) #74

feat(FileCard): Adding new component FileCard (#31)

feat(FileCard): Adding new component FileCard (#31) #74

# Builds and deploys Storybook to github pages
# Requires github pages source settings to target the branch and folder in the deploy step from this action
name: Build and deploy Storybook
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
- name: Cache node modules
uses: actions/cache@v2
id: node-modules-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install modules
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Build docs 🔧
run: yarn storybook:build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: github-pages-deployment
folder: docs # Source folder (output from build step)
target-folder: docs # Target folder (create a directory to put the deployment content in)