Define what to build and where to deploy in one manifest. cascade generates the GitHub Actions wiring, tracks deployment state, manages releases, and cascades promotions through your environments.
cascade is a compiler, not a control plane. You describe your environments, builds, deploys, and release policy in one manifest. cascade compiles that manifest into GitHub Actions workflows and then gets out of the way: everything runs as native GitHub Actions, with no external service, agent, or daemon watching your repository. Your build and deploy callbacks run on whatever runners you configure, GitHub-hosted or self-hosted.
How it works
The manifest (.github/manifest.yaml) holds both the pipeline configuration and the live deployment state for every environment. You run cascade generate-workflow once to compile it into GitHub Actions workflows, and commit those alongside your code. From then on the generated workflows own their own execution: a merge to trunk builds and deploys to the first environment, and a workflow_dispatch promotes the same built artifact through the rest of the chain without rebuilding it.
Read How Cascade works for the full mental model, including the release boundary and the hotfix and rollback off-ramps.
Quickstart
go install github.com/stablekernel/cascade/cmd/cascade@latest
See Getting started for the pinned-version install and the setup-cli action, both of which most teams should use instead of a bare @latest install. If your organization restricts Actions to an allowlist, generate with --cli-install=binary so the generated workflows install the CLI inline with no third-party action (same signed-release verification); see the --cli-install flag.
Write a manifest, write your build and deploy callbacks, then generate. Callbacks must exist first: the generator reads their workflow_call outputs to wire the rest.
# 1. Write .github/manifest.yaml (above)
# 2. Write your build/deploy callback workflows (they must exist first)
# 3. Generate the orchestration workflows
cascade generate-workflow --config .github/manifest.yaml
# 4. Commit everything and push to trunk to run the first pipeline
The full walkthrough, including cascade init scaffolding and the four topology shapes, lives in Getting started.
What cascade generates
A single generate-workflow run compiles the manifest into the orchestrate, promote, hotfix, and rollback workflows plus the release composite action, with opt-in companions emitted only when their manifest block is present. See Generated workflows for the full anatomy of each file.
Highlights
Compiler model. One manifest compiles into a full multi-environment pipeline of native GitHub Actions workflows.
Single or multi-component. A single-component repo is the default; declare more to version, promote, hotfix, and roll back each independently from one manifest, each in its own tag and state namespace. Monorepos are native, not bolted on. See Components.
SHA-keyed promotion ladder. Promote the exact bytes that passed the previous environment, never a per-stage rebuild. See Promote a release.
Security by construction. Every caller job carries a per-callback least-privilege permissions: block, including OIDC id-token: write. See Callback contract.
Self-healing supply chain. Third-party action pins live in one source of truth, and a reconcile companion adopts external pin bumps back into the manifest. See Action pins.
Hotfix and rollback, race-safe. Patch or revert a single environment with correct, race-safe concurrency. Hotfix currently cherry-picks, builds, tags, and releases the fix; its generated deploy step is a placeholder, so running the deploy workflow is a manual follow-up. See Run a hotfix and Roll back an environment.
Preview a pipeline before you merge: simulate traces what a change would build and deploy, and graph renders the environment chain.
A fuller manifest puts a few fields to work: web builds only after api, and each build and deploy runs only when its triggers match the changed paths.
Command cascade compiles a declarative manifest (.github/manifest.yaml) into GitHub Actions workflows for trunk-based, multi-environment release pipelines, and provides the lifecycle subcommands the generated workflows invoke, such as orchestrate, promote, release, hotfix, and rollback.
Command cascade compiles a declarative manifest (.github/manifest.yaml) into GitHub Actions workflows for trunk-based, multi-environment release pipelines, and provides the lifecycle subcommands the generated workflows invoke, such as orchestrate, promote, release, hotfix, and rollback.
Package changelog generates release changelogs from conventional commit history, parsing commits into typed entries and enriching authors with GitHub usernames for release notes.
Package changelog generates release changelogs from conventional commit history, parsing commits into typed entries and enriching authors with GitHub usernames for release notes.
Package changes detects which files changed between two commits and, from the path rules in the manifest, which component builds and deploys those changes trigger.
Package changes detects which files changed between two commits and, from the path rules in the manifest, which component builds and deploys those changes trigger.
Package coverage records, for every workflow kind the generator emits, the executing coverage that exercises it: e2e scenarios, e2e harness tests, and fleet lanes.
Package coverage records, for every workflow kind the generator emits, the executing coverage that exercises it: e2e scenarios, e2e harness tests, and fleet lanes.
Package ghaoutput writes step outputs to the file named by $GITHUB_OUTPUT, using plain key=value lines for single-line values and randomized heredoc delimiters for multiline values so untrusted content cannot forge additional outputs.
Package ghaoutput writes step outputs to the file named by $GITHUB_OUTPUT, using plain key=value lines for single-line values and randomized heredoc delimiters for multiline values so untrusted content cannot forge additional outputs.
Package git wraps the git CLI for the repository operations cascade needs: listing changed files and commits between SHAs, reading and validating version tags, querying branches, and committing and pushing state updates with rebase and retry handling.
Package git wraps the git CLI for the repository operations cascade needs: listing changed files and commits between SHAs, reading and validating version tags, querying branches, and committing and pushing state updates with rebase and retry handling.
Package initcmd implements the "cascade init" command, which scaffolds a new project: it renders a starter manifest and matching reusable-workflow stubs, self-checks them through the real generator, and writes them to disk so a repository can adopt cascade with a working configuration on the first try.
Package initcmd implements the "cascade init" command, which scaffolds a new project: it renders a starter manifest and matching reusable-workflow stubs, self-checks them through the real generator, and writes them to disk so a repository can adopt cascade with a working configuration on the first try.
Package pinreconcile implements the pin-reconciliation engine: adopting an external action-pin change back into the manifest and regenerating so every owned file agrees with it again.
Package pinreconcile implements the pin-reconciliation engine: adopting an external action-pin change back into the manifest and regenerating so every owned file agrees with it again.
Package release manages GitHub releases over the GitHub REST API: creating and updating the draft release that accumulates changes and publishing it when a version is released.
Package release manages GitHub releases over the GitHub REST API: creating and updating the draft release that accumulates changes and publishing it when a version is released.
Package scaffold renders a starter cascade manifest and the matching reusable-workflow stubs for a project, so a new repository can adopt cascade with a working, self-consistent configuration on the first try.
Package scaffold renders a starter cascade manifest and the matching reusable-workflow stubs for a project, so a new repository can adopt cascade with a working, self-consistent configuration on the first try.
Package simulate implements the what-if engine behind cascade simulate: it applies a hypothetical promote, rollback, release, or hotfix action to an in-memory copy of the manifest and reports the resulting state diff and side effects without changing anything.
Package simulate implements the what-if engine behind cascade simulate: it applies a hypothetical promote, rollback, release, or hotfix action to an in-memory copy of the manifest and reports the resulting state diff and side effects without changing anything.
Package statewrite provides the shared optimistic-lock retry used by every finalize verb (orchestrate, promote, rollback, hotfix) when it commits the manifest to the trunk branch through the GitHub Contents REST API.
Package statewrite provides the shared optimistic-lock retry used by every finalize verb (orchestrate, promote, rollback, hotfix) when it commits the manifest to the trunk branch through the GitHub Contents REST API.
Package status implements the cascade status command group: it reads the deployed state recorded in the manifest for environments, builds, and deploys, and includes a consistency check that compares recorded state against the repository's remote branches.
Package status implements the cascade status command group: it reads the deployed state recorded in the manifest for environments, builds, and deploys, and includes a consistency check that compares recorded state against the repository's remote branches.