Skip to content

Commit

Permalink
gp
Browse files Browse the repository at this point in the history
  • Loading branch information
yhattav committed Nov 10, 2024
1 parent 9fcaf7d commit 9872659
Show file tree
Hide file tree
Showing 3 changed files with 371 additions and 3 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy Examples to GitHub Pages

on:
push:
branches:
- main # or master

permissions:
contents: write

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
# Install dependencies in both root and examples directory
run: |
npm ci
cd examples
npm ci
- name: Build
# Build the examples app
run: |
cd examples
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: examples/public # Changed to examples/build
branch: gh-pages
Loading

0 comments on commit 9872659

Please sign in to comment.