[DX] make deploy-playground — copy build-playground/ into the site checkout #386

Open
opened 2026-07-16 16:30:15 +00:00 by john · 0 comments
Owner

The build-playground/ -> mcrogueface.github.io/playground/ copy was manual, which bit us during the #382 session (rebuilt + pushed the engine playground but the site /playground/ still served the stale binaries, so #url= links did nothing locally until the four files were hand-copied).

Add a make deploy-playground target that:

  • Fails early if build-playground/mcrogueface.wasm is missing (run make playground first)
  • Fails early if $(SITE_DIR)/playground is missing
  • Copies mcrogueface.{data,js,wasm,html} into $(SITE_DIR)/playground/
  • Copies mcrogueface.html -> index.html (GitHub Pages serves index.html at /playground/)
  • Reuses the existing SITE_DIR ?= $(CURDIR)/../mcrogueface.github.io variable

Still manual afterward: rebuild Jekyll in the site checkout and commit/push the updated binaries. A future step could chain the Jekyll build + commit, but keeping the copy explicit is the minimum fix.

The `build-playground/` -> `mcrogueface.github.io/playground/` copy was manual, which bit us during the #382 session (rebuilt + pushed the engine playground but the site `/playground/` still served the stale binaries, so `#url=` links did nothing locally until the four files were hand-copied). Add a `make deploy-playground` target that: - Fails early if `build-playground/mcrogueface.wasm` is missing (run `make playground` first) - Fails early if `$(SITE_DIR)/playground` is missing - Copies `mcrogueface.{data,js,wasm,html}` into `$(SITE_DIR)/playground/` - Copies `mcrogueface.html` -> `index.html` (GitHub Pages serves index.html at `/playground/`) - Reuses the existing `SITE_DIR ?= $(CURDIR)/../mcrogueface.github.io` variable Still manual afterward: rebuild Jekyll in the site checkout and commit/push the updated binaries. A future step could chain the Jekyll build + commit, but keeping the copy explicit is the minimum fix.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
john/McRogueFace#386
No description provided.