Build and Release

Builds should be reproducible from the repository state.

Current Build Entry Point

Rscript scripts/build_market.R markets/CN/store_visits

Current State

The build scaffold exists, but real market build logic still needs to be migrated into each market folder.

Intended Build Outcome

Each build should eventually produce:

  • a market/KPI-specific upload artefact
  • a traceable artefact name
  • an association to the commit SHA that generated it

Intended Traceability

At a minimum, a future build path should capture:

  • market
  • KPI
  • build timestamp
  • commit SHA
  • validated runtime versions

CI Versus Local Build

Current scaffold:

  • local build entrypoint exists
  • CI validates structure only

Target state:

  • local build for iteration
  • CI-backed validation before merge
  • optional CI build publication once workflow stabilises