Skip to content

Build and deploy demo #33

Build and deploy demo

Build and deploy demo #33

Workflow file for this run

name: Build and deploy demo
on:
workflow_run:
workflows: ["Publish"]
types:
- completed
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-deploy-demo:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Build and deploy demo
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./formule-demo
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Override react-formule with latest npm release
run: yarn add react-formule
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: formule-demo/dist