**build(demo): remove GitHub Pages workflow and streamline demo deployment**

### Changes:
- Removed `github-pages.yml` GitHub Actions workflow file.
- Updated `README.md`:
  - Added documentation for `npm run deploy:demo` to deploy the demo to GitHub Pages.
  - Updated the live demo link to reflect the repository's namespace change.
- Added `gh-pages` dependency (v6.3.0) in `package.json`.
- Introduced `deploy:demo` script in `package.json` for demo deployment.

### Purpose:
Streamlined the demo deployment process by removing the dedicated GitHub Pages workflow and replacing it with a manual deployment script (`npm run deploy:demo`). This enhances developer control while maintaining simplicity in deploying updates to the live demo.
This commit is contained in:
David Snelling 2025-06-20 14:23:30 -07:00
parent 982609e001
commit 5cc6f9d683
4 changed files with 202 additions and 34 deletions

View file

@ -1,33 +0,0 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- main # Set this to the branch you want to deploy from
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './examples' # Upload the examples directory
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4