Repository navigation
Closed
Labels
area:ciCI/CD, GitHub Actions, workflowsarea:workflowDeveloper workflow, commands, rules, skillseffort:medium1-4 hoursfeatureNew feature or requestpriority:mediumImportant but not urgentsemver:minorNew feature, backward-compatible
Description
Description
Implement a reusable release cycle for downstream repositories, mirroring this project's release flow while allowing project-specific customization without workflow drift.
Problem Statement
Downstream projects need a consistent release process, but they also need custom steps (for example: GHCR publishing, special packaging, or extra artifact publishing). Copying full workflows across repos causes drift and weakens upgradeability.
Design Evaluation
Option A (recommended): Core reusable workflows + downstream extension workflow contract
- This project ships and maintains reusable
prepare-releaseandreleaseworkflows. - Downstream repos call these workflows pinned to a tag/ref.
- Downstream repos own a local extension workflow (project-specific, not managed by this project), similar ownership model to
assets/workspace/justfile.project: tracked locally and preserved by default. - Core
releaseworkflow calls that extension workflow at a defined hook point and enforces a clear interface/contract.
Pros
- Centralized updates to shared release logic.
- Clear customization boundary.
- Lowest drift for common release behavior.
Cons
- Contract versioning/migrations must be managed.
- Requires robust docs and validation for extension hook usage.
Option B: Fully downstream-owned workflow (no extension hook, no central updates)
- Each downstream project owns and maintains its own full release workflow.
Pros
- Maximum flexibility.
Cons
- Highest drift and maintenance burden.
- Repeated bugfixes and inconsistent release safety.
Option C: Centrally shipped workflow file copied into downstream and merged manually
- This project periodically updates a downstream-tracked workflow file; users resolve updates with git merges.
Pros
- Familiar git-based update model.
Cons
- Still prone to divergence.
- Merge overhead increases over time.
- Ambiguous ownership of local edits vs upstream updates.
Recommendation
Adopt Option A.
- Keep shared release correctness in centrally maintained reusable workflows.
- Keep project-specific behavior in a downstream-owned extension workflow.
- Version the extension contract and document upgrade paths.
Proposed Solution
Implement two reusable workflows in this project:
-
prepare-releasereusable workflow- Performs common preparation steps.
- Produces standardized outputs consumed by
release.
-
releasereusable workflow- Performs common validate/finalize/build/test orchestration.
- Calls a downstream extension workflow (if configured) for project-specific steps.
- Publishes the GitHub Release in exactly one canonical step owned by core workflow logic.
Release Publication Rule (single-step requirement)
- The actual GitHub Release creation/publish must occur once in core
releaseworkflow, not inside extensions. - Extension workflow is for custom project actions (e.g. GHCR/package/signing/artifact preparation), but must not create the GitHub Release object.
- Core workflow should fail clearly if extension fails.
This preserves one authoritative publish step while still enabling customization.
Acceptance Criteria
-
prepare-releaseandreleaseare available as reusable workflows for downstream repos. -
releasesupports calling a downstream extension workflow through a documented contract. - Contract versioning strategy is defined (for example:
contract_version) and validated. - Missing/invalid extension configuration fails with actionable error messages.
- GitHub Release publication occurs exactly once in a canonical core step.
- Documentation explains downstream integration, pinning strategy, and upgrade process.
- At least one downstream example demonstrates custom steps (for example: GHCR publishing).
- TDD compliance (see
.cursor/rules/tdd.mdc)
Implementation Notes
- Treat reusable workflows as the productized release engine.
- Treat extension workflow as downstream-owned customization layer.
- Downstream should pin reusable workflow refs to released tags for predictable behavior.
- Document how downstream projects adopt new workflow versions and contract changes.
Related Issues
Changelog Category
Added
Metadata
Metadata
Assignees
Labels
area:ciCI/CD, GitHub Actions, workflowsarea:workflowDeveloper workflow, commands, rules, skillseffort:medium1-4 hoursfeatureNew feature or requestpriority:mediumImportant but not urgentsemver:minorNew feature, backward-compatible
Activity
ci(ci): split release workflow into core extension and publish stages
ci(ci): add prepare release workflow and dispatch helpers
docs(ci): document downstream release contract and release modes
fix(ci): harden release workflow tag and ref checks
fix(ci): tighten release workflow validation and sync gating
ci: split downstream release workflow into reusable stages (#329)
chore: release 0.3.1 (#70)
chore: release 0.3.1 (#92)
chore: release 0.3.1 (#97)
chore: release 0.3.1 (#100)
chore: release 0.3.1 (#109)
chore: release 0.3.1 (#112)
chore: release 0.3.1 (#342)