Skip to main content
With flows in the repo, CI records them again on a trigger you choose and delivers only the videos whose picture changed.

Before you start

  • The repo is on github.com, and gh is installed and signed in.
  • At least one flow is added (Add to your repo).
  • Apps behind a login use demo accounts (Sign in).

Set it up

Setup records your flows once from a clean checkout, then shows one plan and asks once. Nothing is written to your checkout or to GitHub before you confirm. The plan names: The Studio offers the same plan after an add, in its Add to repo sheet:
The Add to repo sheet after an add: the four files it wrote, then the CI plan with its trigger, route and Open pull request
On your confirmation it sets the secrets, opens a pull request titled “Set up Demoman”, and watches its first run until it passes or fails.

How CI starts your app

.demoman/app.json is the committed record of how the app installs and starts, and where it answers. Setup drafts it from your repo (a Playwright webServer, a CI workflow, package.json) and asks for anything it cannot find. Every field, and pinning the date for an app that shows today’s date, is on app.json.

After setup

On each trigger, the workflow runs demoman refresh. With the pr route it opens or updates one pull request, “Refresh demo videos”, listing each changed video. Merge it to publish them. When nothing changed, nothing is committed. Refresh explains how a change is judged. The workflow runs the Demoman release that wrote it. To move it to a newer one, run npx demoman setup --ci again: it opens one pull request, “Update Demoman’s workflow”, that keeps the trigger and route you chose.
The pr route needs Allow GitHub Actions to create and approve pull requests under Settings → Actions → General. Setup turns it on for you; in an organisation that forbids it, an owner allows it there first.
If setup stops, it says why and what to do; every reason is on Refusals. All flags are on setup.

Next · Concepts

How a refresh decides what changed