From e20384dca382e73c2e5d281425ecf744b48d5f96 Mon Sep 17 00:00:00 2001 From: Seungpyo1007 Date: Tue, 14 Jul 2026 12:16:24 +0900 Subject: [PATCH] fix(pages): exclude game dump from deployment --- .github/workflows/deploy-pages.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index ff7a176741e2..07c1cea2d04c 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -45,6 +45,18 @@ jobs: run: | mkdir -p _site cp -r site/dist/. _site/ + # Games remain versioned static source data in this repository, but + # publishing nearly one million per-record files exceeds the fixed + # GitHub Pages deployment window. Keep the public homepage artifact + # to the collections it can serve reliably. + rm -rf _site/v1/games + node <<'NODE' + const fs = require("fs"); + const path = "_site/v1/index.json"; + const manifest = JSON.parse(fs.readFileSync(path, "utf8")); + delete manifest.collections?.games; + fs.writeFileSync(path, JSON.stringify(manifest, null, 2) + "\n"); + NODE touch _site/.nojekyll - uses: actions/upload-pages-artifact@v3 @@ -60,7 +72,3 @@ jobs: steps: - id: deployment uses: actions/deploy-pages@v4 - with: - # The game dump contains nearly one million static records. Pages can - # remain in syncing_files beyond the action's 10-minute default. - timeout: 1800000