Skip to content

Commit a438708

Browse files
vincentfretinclaude
andcommitted
Full site build pipeline in GitHub Actions, replacing a-frobot
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4bfd980 commit a438708

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

‎.github/workflows/deploy-pages.yml‎

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Deploy to GitHub Pages
22

33
on:
4-
push:
5-
branches: [master]
4+
repository_dispatch:
5+
types: [deploy]
6+
workflow_dispatch:
67

78
permissions:
89
contents: read
@@ -21,18 +22,33 @@ jobs:
2122
url: ${{ steps.deployment.outputs.page_url }}
2223
steps:
2324
- uses: actions/checkout@v6
25+
with:
26+
repository: aframevr/aframe-site
27+
path: aframe-site
2428

2529
- uses: actions/setup-node@v6
2630
with:
2731
node-version: 24
2832

33+
- name: Install dependencies
34+
run: npm install --ignore-scripts --include=dev
35+
working-directory: aframe-site
36+
37+
- name: Build docs
38+
run: npm run bumpdocs
39+
working-directory: aframe-site
40+
41+
- name: Generate site
42+
run: npm run generate
43+
working-directory: aframe-site
44+
2945
- name: Generate Pagefind index
30-
run: npx pagefind@1.5.0 --site .
46+
run: npx pagefind@1.5.0 --site aframe-site/public
3147

3248
- name: Upload Pages artifact
3349
uses: actions/upload-pages-artifact@v4
3450
with:
35-
path: .
51+
path: aframe-site/public
3652

3753
- name: Deploy to GitHub Pages
3854
id: deployment

0 commit comments

Comments
 (0)