Skip to content

generateCombinedDeployContent

generateCombinedDeployContent(deployWith, paths, preview, id?): string

Defined in: cli/astromech/src/generators/github-action-thin-callers/github-action-thin-callers.ts:266

Generate the full thin-caller YAML for a deploy.yml that handles both production (push to main → GitHub Pages) and preview (pull_request → Cloudflare Pages) in a single file.

Both jobs receive the same docs/storybook with: inputs. If the per-repo config supplies cloudflare-project it is forwarded; otherwise the reusable falls back to the CLOUDFLARE_PAGES_PROJECT org variable (filled from the 1Password sync) — set that once and all repos with a deploy workflow get previews without per-repo config.

Record<string, unknown>

string[]

Pick<PreviewConfig, "project">

string = "deploy"

The task id the caller is for: the workflow name, and the name of both jobs (deploy, deploy-docs, deploy-components).

string