Skip to content

Deploy to Docs workflow #15

Deploy to Docs workflow

Deploy to Docs workflow #15

name: Deploy to Docs workflow
on:
workflow_dispatch:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js 20.x
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
working-directory: apps/ui
- name: Build Storybook
run: npm run build-storybook --if-present
working-directory: apps/ui
- name: Install Netlify CLI
run: npm install -g netlify-cli
- name: Deploy to Netlify
uses: netlify/actions/cli@master
with:
args: deploy --dir=storybook-static --prod
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}