Skip to content

Commit bf20d19

Browse files
committed
fix(ci): stop pruning /v1/games from the published site
The step existed because ~1M game pages blew the Pages deployment window. Games now live in game-catalog and the path holds a 357-byte pointer to it, which this step was deleting — the URL 404s instead of redirecting. Refs #1
1 parent b13db44 commit bf20d19

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,6 @@ jobs:
4848
run: |
4949
mkdir -p _site
5050
cp -r site/dist/. _site/
51-
# Games remain versioned static source data in this repository, but
52-
# publishing nearly one million per-record files exceeds the fixed
53-
# GitHub Pages deployment window. Keep the public homepage artifact
54-
# to the collections it can serve reliably.
55-
rm -rf _site/v1/games
56-
node <<'NODE'
57-
const fs = require("fs");
58-
const path = "_site/v1/index.json";
59-
const manifest = JSON.parse(fs.readFileSync(path, "utf8"));
60-
delete manifest.collections?.games;
61-
fs.writeFileSync(path, JSON.stringify(manifest, null, 2) + "\n");
62-
NODE
6351
touch _site/.nojekyll
6452
6553
- uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)