From c9a50cb0c31283abe3fa1aa10f6c390d32b98872 Mon Sep 17 00:00:00 2001 From: Miguel Garcia Garcia Date: Wed, 21 Feb 2024 16:04:12 +0100 Subject: [PATCH] deploy formule to gh pages --- .github/workflows/deploy-demo.yml | 27 +++++++++++++++++++++++++++ formule-demo/package.json | 3 ++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy-demo.yml diff --git a/.github/workflows/deploy-demo.yml b/.github/workflows/deploy-demo.yml new file mode 100644 index 0000000..2c44b58 --- /dev/null +++ b/.github/workflows/deploy-demo.yml @@ -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 diff --git a/formule-demo/package.json b/formule-demo/package.json index 62d887f..ea325be 100644 --- a/formule-demo/package.json +++ b/formule-demo/package.json @@ -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",