brainy/.github/workflows/github-pages.yml
David Snelling b5d73a54bf **docs(readme): fix demo link and update GitHub Actions workflow versions**
### Changes:
- **README.md**: Corrected the relative path for the live demo link to `examples/demo.html`.
- **github-pages.yml**:
  - Updated GitHub Actions steps to their latest versions:
    - `actions/checkout@v4`
    - `actions/configure-pages@v4`
    - `actions/upload-pages-artifact@v3`
    - `actions/deploy-pages@v4`
  - Ensured compatibility with the latest versions of the workflow actions.

### Purpose:
Fixed a broken link in the README for better user accessibility to the demo. Updated workflow actions in `github-pages.yml` to leverage the latest performances and features.
2025-06-20 14:02:32 -07:00

33 lines
710 B
YAML

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@v3
with:
path: './examples' # Upload the examples directory
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4