refresh: rebuild a gh-pages venture in place, from its own tools/build.sh #67

Merged
teahubxyz merged 1 commits from refresh-in-place into main 2026-10-16 05:18:37 +00:00
Owner

A venture that lives in ventures/<slug>/ on gh-pages and makes some of its own files (screenshots, generated code) can now be rebuilt on the runner without a bundle: Actions → refresh, with slug and, optionally, from (a branch that holds the new version of the folder).

  • The build runs in a checkout without credentials; only ventures/<slug>/ comes back to gh-pages, in one commit.
  • Chrome for screenshots: the runner's own if it has one, else Playwright's Chromium (as the Havre build did).
  • Shares the venture concurrency group with seed and the venture loop, so writes to gh-pages take turns; a push that loses a race rebases its one commit and pushes again.
  • Asks Teahub pages to pull when done.

First use: Havre (slug: havre, from: havre-brutalist), whose source now lives in ventures/havre with the other ventures instead of a separate repo.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sekpYMwTXuMdza1isMQA1

A venture that lives in `ventures/<slug>/` on gh-pages and makes some of its own files (screenshots, generated code) can now be rebuilt on the runner without a bundle: Actions → refresh, with `slug` and, optionally, `from` (a branch that holds the new version of the folder). - The build runs in a checkout without credentials; only `ventures/<slug>/` comes back to gh-pages, in one commit. - Chrome for screenshots: the runner's own if it has one, else Playwright's Chromium (as the Havre build did). - Shares the `venture` concurrency group with seed and the venture loop, so writes to gh-pages take turns; a push that loses a race rebases its one commit and pushes again. - Asks Teahub pages to pull when done. First use: Havre (`slug: havre`, `from: havre-brutalist`), whose source now lives in `ventures/havre` with the other ventures instead of a separate repo. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_012sekpYMwTXuMdza1isMQA1
teahubxyz added 1 commit 2026-10-16 05:18:32 +00:00
Some ventures that live on gh-pages make part of their own files: fonts fetched once, art painted by a script,
screenshots. refresh.yml runs ventures/<slug>/tools/build.sh on the runner, in a checkout without credentials,
copies the folder back over gh-pages in one commit and asks Teahub pages to pull. `from` takes the folder from
another branch first, so a reworked venture lands whole rather than file by file. Havre is the first user.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sekpYMwTXuMdza1isMQA1
teahubxyz merged commit e705ca00ac into main 2026-10-16 05:18:37 +00:00
Sign in to join this conversation.