Integrate selected builds with candidate workflows

This commit is contained in:
2026-10-05 19:38:50 +00:00
parent 5d6a6d10bd
commit e98ee0f7b9
21 changed files with 848 additions and 31 deletions

View File

@@ -49,8 +49,9 @@ type PublicationResult struct {
State PublicationState // publication outcome for this invocation
}
// Publish validates the captured candidate and pushes its exact annotated tag
// object to the selected remote. It returns a result with errors: preflight
// Publish validates the captured candidate, optionally builds its selected
// targets in temporary storage outside the worktree, and pushes its exact
// annotated tag object to the selected remote. It returns a result with errors: preflight
// failures are not_attempted, failed authoritative guards are conflict, and
// errors after local tag creation but before push are not_published. A failed
// push gets one bounded authoritative tag query: an exact object match confirms
@@ -74,6 +75,7 @@ func Publish(ctx context.Context, request ReleaseRequest) (PublicationResult, er
Version: request.Version,
Remote: request.Remote,
Validate: validate,
AfterValidate: candidateBuildCallback(request.Build, request.Output),
Output: request.Output,
})
return PublicationResult{