Skip to content

Merge pull request #3123 from ONSdigital/update-for-CIR-changes #723

Merge pull request #3123 from ONSdigital/update-for-CIR-changes

Merge pull request #3123 from ONSdigital/update-for-CIR-changes #723

name: Build and deploy design system
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
env:
working-directory: ./eq-author
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn
working-directory: ${{env.working-directory}}
- name: Build design system
run: yarn build-storybook
working-directory: ${{env.working-directory}}
- name: Deploy design system
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: design-system
CLEAN: true