From a4387089cfe3751eb2fec0f01bd43808b05a270a Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Sun, 12 Apr 2026 10:47:20 +0200 Subject: [PATCH 1/4] Full site build pipeline in GitHub Actions, replacing a-frobot Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/deploy-pages.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 68e3d590c..433bc03b5 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -1,8 +1,9 @@ name: Deploy to GitHub Pages on: - push: - branches: [master] + repository_dispatch: + types: [deploy] + workflow_dispatch: permissions: contents: read @@ -21,18 +22,33 @@ 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 + - name: Install dependencies + run: npm install --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@1.5.0 --site aframe-site/public - name: Upload Pages artifact uses: actions/upload-pages-artifact@v4 with: - path: . + path: aframe-site/public - name: Deploy to GitHub Pages id: deployment From 084b5e6cbefd996ab732ca3352893d8b2d911e44 Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Sun, 12 Apr 2026 11:05:48 +0200 Subject: [PATCH 2/4] cache aframe-site/node_modules --- .github/workflows/deploy-pages.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 433bc03b5..d811a708f 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -29,9 +29,11 @@ jobs: - uses: actions/setup-node@v6 with: node-version: 24 + cache: 'npm' + cache-dependency-path: 'aframe-site/package-lock.json' - name: Install dependencies - run: npm install --ignore-scripts --include=dev + run: npm ci --ignore-scripts --include=dev working-directory: aframe-site - name: Build docs From d65691093cf4b9bdab92f318bcfa8ea2b4f86bdd Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Sun, 12 Apr 2026 11:14:21 +0200 Subject: [PATCH 3/4] Add push trigger back to deploy workflow Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/deploy-pages.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index d811a708f..78adae791 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -1,6 +1,8 @@ name: Deploy to GitHub Pages on: + push: + branches: [master] repository_dispatch: types: [deploy] workflow_dispatch: From 8da42303a7425919d7ed0686fd1580a574e7373c Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Sun, 12 Apr 2026 11:19:32 +0200 Subject: [PATCH 4/4] Use pagefind version from aframe-site package.json Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/deploy-pages.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 78adae791..bfb723e4d 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -47,7 +47,8 @@ jobs: working-directory: aframe-site - name: Generate Pagefind index - run: npx pagefind@1.5.0 --site aframe-site/public + run: npx pagefind --site public + working-directory: aframe-site - name: Upload Pages artifact uses: actions/upload-pages-artifact@v4