Build and deploy demo #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |