Integrate selected builds with candidate workflows
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user