Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Deploy to GitHub Pages
on:
push:
branches: [master]
repository_dispatch:
types: [deploy]
workflow_dispatch:

permissions:
contents: read
Expand All @@ -21,18 +24,36 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v6
with:
repository: aframevr/aframe-site
path: aframe-site

- uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
cache-dependency-path: 'aframe-site/package-lock.json'

- name: Install dependencies
run: npm ci --ignore-scripts --include=dev
working-directory: aframe-site

- name: Build docs
run: npm run bumpdocs
working-directory: aframe-site

- name: Generate site
run: npm run generate
working-directory: aframe-site

- name: Generate Pagefind index
run: npx pagefind@1.5.0 --site .
run: npx pagefind --site public
working-directory: aframe-site

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: .
path: aframe-site/public

- name: Deploy to GitHub Pages
id: deployment
Expand Down