Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Loading