Skip to content

Commit 2df57e2

Browse files
committed
ci(pages): exclude game dump from Pages deploy (syncing_files timeout)
deploy-pages regenerates the full static dump (`python -m app.dump`) and uploads it to GitHub Pages. Since the game category grew to ~962k records, the artifact holds ~1M per-record files and the deploy step times out at `Current status: syncing_files` / `Error: Timeout reached, aborting!`. Mirror the TechAPI homepage workflow: after assembling `_site`, drop `_site/v1/games` and remove `games` from `_site/v1/index.json`. Games stay available as versioned data in the TechAPI repo; every other collection is still published. This keeps the deploy within the Pages sync window. (Latent since the ~1M import on 2026-07-12; only surfaced now that the setup-python crash in #45 was fixed and the deploy step actually runs.)
1 parent 27bba60 commit 2df57e2

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,19 @@ jobs:
6363
mkdir -p _site
6464
cp -r site/dist/. _site/
6565
cp -r dump/. _site/
66+
# Games remain available as versioned data in the TechAPI repo, but
67+
# publishing ~1M per-record files exceeds the fixed GitHub Pages
68+
# deployment window (the deploy step times out at "syncing_files").
69+
# Exclude them from the published artifact to keep deploys reliable,
70+
# mirroring the TechAPI homepage workflow.
71+
rm -rf _site/v1/games
72+
node <<'NODE'
73+
const fs = require("fs");
74+
const path = "_site/v1/index.json";
75+
const manifest = JSON.parse(fs.readFileSync(path, "utf8"));
76+
delete manifest.collections?.games;
77+
fs.writeFileSync(path, JSON.stringify(manifest, null, 2) + "\n");
78+
NODE
6679
touch _site/.nojekyll
6780
6881
- uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)