Skip to content

Enumeration

WorkflowBuilder

A result builder for constructing workflow step sequences with Swift DSL syntax.

@resultBuilder enum WorkflowBuilder

Overview

Supports conditionals, loops, and optional steps, enabling ergonomic programmatic workflow construction alongside YAML-defined workflows.

Usage

let workflow = Workflow("beta") {
    WorkflowStep(action: "version", options: .object(["bump": .string("build")]))
    WorkflowStep(action: "archive")
    if uploadToTestFlight {
        WorkflowStep(action: "testflight")
    }
}

Topics

Type Methods