Skip to content

Commit

Permalink
deploy formule to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrc committed Feb 21, 2024
1 parent 4902e0d commit c9a50cb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and deploy demo
on: [push]
permissions:
contents: write
jobs:
build-and-deploy-demo:
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: Install
run: yarn

- name: Build
run: yarn build

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
3 changes: 2 additions & 1 deletion formule-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-formule": "latest"
},
"devDependencies": {
"@types/react": "^18.2.15",
Expand Down

0 comments on commit c9a50cb

Please sign in to comment.