Skip to content

Merge pull request #3131 from ONSdigital/EAR-2470-questionnaire-picker #734

Merge pull request #3131 from ONSdigital/EAR-2470-questionnaire-picker

Merge pull request #3131 from ONSdigital/EAR-2470-questionnaire-picker #734

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/checkout@v2.3.1
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/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: design-system
CLEAN: true