Public/Install-CCReleaseWorkflow.ps1

function Install-CCReleaseWorkflow {
    <#
    .SYNOPSIS
        Generates CI and release workflow files for the detected technology into the repository.
    .DESCRIPTION
        Writes .github/workflows/ci.yml and release.yml from the technology provider's templates
        (PowerShell or .NET), recording them in .codecompass/manifest.yml. Idempotent and safe to
        re-run. Use Update-CCReleaseWorkflow to re-sync later. Supports -WhatIf and -Force.
    .EXAMPLE
        Install-CCReleaseWorkflow -Path .
    .EXAMPLE
        Install-CCReleaseWorkflow -Path . -WhatIf
    #>

    [CmdletBinding(SupportsShouldProcess)]
    [OutputType([pscustomobject])]
    param(
        [Parameter(Position = 0)]
        [string]$Path = '.',

        [switch]$Force
    )

    Invoke-CCWorkflowSync -Path $Path -Force:$Force -Cmdlet $PSCmdlet
}