brainy/.github/workflows/github-pages.yml
David Snelling e89fd8b7f6 **ci(workflows): update upload-pages-artifact action to v4**
### Changes:
- **github-pages.yml**:
  - Updated `actions/upload-pages-artifact` from `v3` to `v4`.

### Purpose:
Ensured compatibility with the latest version of the `upload-pages-artifact` action to leverage improvements and maintain long-term support.
2025-06-20 14:04:58 -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@v4
with:
path: './examples' # Upload the examples directory
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4