ModularPipelines.Git 2.3.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package ModularPipelines.Git --version 2.3.0                
NuGet\Install-Package ModularPipelines.Git -Version 2.3.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ModularPipelines.Git" Version="2.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ModularPipelines.Git --version 2.3.0                
#r "nuget: ModularPipelines.Git, 2.3.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ModularPipelines.Git as a Cake Addin
#addin nuget:?package=ModularPipelines.Git&version=2.3.0

// Install ModularPipelines.Git as a Cake Tool
#tool nuget:?package=ModularPipelines.Git&version=2.3.0                

ModularPipelines

Define your pipeline in .NET! Strong types, intellisense, parallelisation, and the entire .NET ecosystem at your fingertips.

nuget Nuget GitHub Workflow Status (with event) GitHub last commit (branch) Codacy Badge License Codacy Badge

Available Modules

Package Version
ModularPipelines nuget
ModularPipelines.Azure nuget
ModularPipelines.Azure.Pipelines nuget
ModularPipelines.Cmd nuget
ModularPipelines.Docker nuget
ModularPipelines.DotNet nuget
ModularPipelines.Email nuget
ModularPipelines.Ftp nuget
ModularPipelines.Git nuget
ModularPipelines.Helm nuget
ModularPipelines.Kubernetes nuget
ModularPipelines.MicrosoftTeams nuget
ModularPipelines.Node nuget
ModularPipelines.NuGet nuget
ModularPipelines.Slack nuget
ModularPipelines.Terraform nuget

Getting Started

If you want to see how to get started, or want to know more about ModularPipelines, read the Wiki page here

Code Examples

Program.cs - Main method

await PipelineHostBuilder.Create()
    .ConfigureAppConfiguration((context, builder) =>
    {
        builder.AddJsonFile("appsettings.json")
            .AddUserSecrets<Program>()
            .AddEnvironmentVariables();
    })
    .ConfigureServices((context, collection) =>
    {
        collection.Configure<NuGetSettings>(context.Configuration.GetSection("NuGet"));
        collection.Configure<PublishSettings>(context.Configuration.GetSection("Publish"));
    })
    .AddModule<FindNugetPackagesModule>()
    .AddModule<UploadNugetPackagesModule>()
    .ExecutePipelineAsync();

Custom Modules

public class FindNugetPackagesModule : Module<FileInfo>
{
    protected override async Task<List<File>?> ExecuteAsync(IModuleContext context, CancellationToken cancellationToken)
    {
        await Task.Yield();

        return context.FileSystem.GetFiles(context.Environment.GitRootDirectory!.Path,
            SearchOption.AllDirectories,
            path => path.Extension is ".nupkg")
            .ToList();
    }
}
[DependsOn<FindNugetPackagesModule>]
public class UploadNugetPackagesModule : Module<FileInfo>
{
    private readonly IOptions<NuGetSettings> _nugetSettings;

    public UploadNugetPackagesModule(IOptions<NuGetSettings> nugetSettings)
    {
        _nugetSettings = nugetSettings;
    }

    protected override async Task<CommandResult?> ExecuteAsync(IModuleContext context, CancellationToken cancellationToken)
    {
        var nugetFiles = await GetModule<FindNugetPackagesModule>();

        return await context.NuGet()
            .UploadPackages(new NuGetUploadOptions(packagePaths.Value!.AsPaths(), new Uri("https://api.nuget.org/v3/index.json"))
            {
                ApiKey = _nugetSettings.Value.ApiKey,
                NoSymbols = true
            });
    }
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ModularPipelines.Git:

Package Downloads
ModularPipelines.GitHub

Helpers for interacting with GitHub Actions build agents.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on ModularPipelines.Git:

Repository Stars
thomhurst/TUnit
A modern, fast and flexible .NET testing framework
thomhurst/EnumerableAsyncProcessor
Process Multiple Asynchronous Tasks in Various Ways - One at a time / Batched / Rate limited / Concurrently
Version Downloads Last updated
2.43.0 5,472 a month ago
2.42.319 1,392 a month ago
2.42.246 6,603 2 months ago
2.42.228 1,745 3 months ago
2.42.226 169 3 months ago
2.42.140 3,383 4 months ago
2.42.134 385 4 months ago
2.42.132 145 4 months ago
2.42.115 12,027 4 months ago
2.42.87 1,991 5 months ago
2.42.67 3,913 6 months ago
2.42.59 1,368 6 months ago
2.42.54 196 6 months ago
2.42.53 137 6 months ago
2.42.47 1,018 6 months ago
2.42.45 6,913 6 months ago
2.42.9 1,899 7 months ago
2.42.8 501 7 months ago
2.42.0 176 7 months ago
2.41.4 192 7 months ago
2.41.0 296 7 months ago
2.40.18 204 7 months ago
2.40.15 126 7 months ago
2.40.10 203 7 months ago
2.40.8 132 7 months ago
2.40.4 1,601 7 months ago
2.40.1 227 7 months ago
2.38.36 257 7 months ago
2.38.25 805 7 months ago
2.38.2 779 8 months ago
2.38.1 116 8 months ago
2.37.9 347 8 months ago
2.37.1 121 8 months ago
2.36.29 625 9 months ago
2.36.23 453 9 months ago
2.36.4 1,053 10 months ago
2.35.0 277 10 months ago
2.34.0 299 5/23/2024
2.33.0 504 5/20/2024
2.32.0 206 5/17/2024
2.31.3 1,072 4/15/2024
2.31.0 138 4/15/2024
2.30.9 375 3/27/2024
2.30.5 135 3/26/2024
2.30.3 135 3/26/2024
2.29.32 159 3/26/2024
2.29.22 444 3/8/2024
2.29.15 231 3/1/2024
2.29.11 188 2/27/2024
2.29.9 306 2/26/2024
2.29.0 145 2/25/2024
2.28.0 150 2/23/2024
2.27.12 330 2/15/2024
2.27.9 166 2/14/2024
2.27.3 315 2/8/2024
2.27.0 124 2/8/2024
2.26.8 282 2/4/2024
2.26.0 374 1/29/2024
2.25.0 151 1/28/2024
2.24.9 249 1/25/2024
2.24.4 120 1/25/2024
2.24.1 188 1/22/2024
2.22.0 135 1/18/2024
2.21.12 153 1/18/2024
2.21.9 134 1/18/2024
2.21.4 177 1/13/2024
2.21.0 109 1/12/2024
2.20.2 176 1/11/2024
2.19.2 286 12/27/2023
2.19.0 156 12/26/2023
2.18.8 118 12/26/2023
2.18.0 235 12/24/2023
2.17.25 190 12/22/2023
2.17.20 354 12/5/2023
2.17.0 309 11/24/2023
2.16.2 143 11/23/2023
2.16.0 161 11/23/2023
2.15.24 167 11/22/2023
2.15.21 144 11/22/2023
2.15.17 151 11/20/2023
2.15.3 197 11/9/2023
2.15.0 108 11/8/2023
2.14.9 204 11/6/2023
2.14.7 148 11/6/2023
2.14.1 144 11/6/2023
2.13.63 181 10/29/2023
2.13.47 228 10/20/2023
2.13.8 166 10/13/2023
2.13.5 139 10/13/2023
2.12.15 148 10/10/2023
2.12.11 192 10/10/2023
2.12.5 151 10/6/2023
2.12.1 168 10/4/2023
2.11.12 163 10/1/2023
2.11.11 141 9/30/2023
2.11.9 160 9/30/2023
2.11.4 156 9/30/2023
2.11.0 193 9/29/2023
2.10.6 248 9/29/2023
2.10.0 146 9/28/2023
2.9.0 136 9/28/2023
2.8.23 149 9/26/2023
2.8.12 159 9/24/2023
2.8.4 143 9/24/2023
2.8.0 145 9/24/2023
2.7.10 145 9/23/2023
2.7.6 154 9/22/2023
2.6.0 160 9/19/2023
2.5.11 155 9/16/2023
2.5.5 174 9/14/2023
2.5.2 165 9/14/2023
2.5.0 138 9/14/2023
2.4.0 145 9/12/2023
2.3.2 176 9/11/2023
2.3.0 157 9/11/2023
2.2.0 171 9/11/2023
2.0.8 163 9/7/2023
2.0.5 140 9/6/2023
2.0.0 149 9/6/2023
1.9.38 153 9/5/2023
1.9.36 136 9/5/2023
1.9.35 149 9/4/2023
1.9.31 155 9/4/2023
1.9.28 154 9/4/2023
1.9.22 155 9/3/2023
1.9.17 149 9/3/2023
1.9.15 141 9/3/2023
1.9.8 151 9/1/2023
1.9.6 170 9/1/2023
1.9.4 166 9/1/2023
1.9.1 172 8/31/2023
1.8.22 192 8/29/2023
1.8.18 151 8/29/2023
1.8.8 153 8/24/2023
1.8.6 151 8/24/2023
1.7.0 162 8/22/2023
1.6.3 171 8/17/2023
1.6.2 158 8/17/2023
1.6.1 198 8/17/2023
1.6.0 184 8/17/2023
1.5.5 188 8/15/2023
1.5.0 181 8/14/2023
1.4.34 186 8/11/2023
1.4.33 166 8/11/2023
1.4.31 191 8/11/2023
1.4.29 169 8/10/2023
1.4.22 175 8/10/2023
1.4.21 237 8/10/2023
1.4.20 186 8/10/2023
1.4.18 186 8/7/2023
1.4.17 183 8/7/2023
1.4.15 193 8/7/2023
1.4.14 197 8/2/2023
1.4.12 192 8/2/2023
1.4.11 191 7/19/2023
1.4.10 195 7/19/2023
1.4.9 178 7/18/2023
1.4.8 182 7/18/2023
1.4.6 192 7/13/2023
1.4.5 172 7/11/2023
1.4.4 190 7/10/2023
1.4.3 174 7/10/2023
1.4.2 190 7/7/2023
1.4.1 216 7/6/2023
1.4.0 178 7/6/2023
1.3.17 189 7/5/2023
1.3.15 193 7/5/2023
1.3.14 184 7/5/2023
1.3.13 173 7/5/2023
1.3.12 186 6/30/2023
1.3.11 201 6/30/2023
1.3.8 195 6/30/2023
1.3.7 188 6/30/2023
1.3.6 192 6/30/2023
1.3.5 164 6/30/2023
1.3.4 186 6/30/2023
1.3.3 187 6/29/2023
1.3.2 185 6/29/2023
1.3.1 178 6/29/2023
1.3.0 183 6/29/2023
1.2.0 174 6/29/2023
1.1.0 178 6/29/2023
1.0.1 195 6/29/2023
0.3.26 191 6/29/2023
0.2.0 170 6/29/2023
0.1.1-initial-2-0027 153 6/8/2023
0.1.1-initial-2-0025 153 6/8/2023
0.1.1-initial-2-0024 150 6/8/2023
0.1.0 205 6/28/2023
0.1.0-initial-2-19 151 6/8/2023
0.1.0-initial-2-0023 157 6/8/2023
0.1.0-initial-2.1 64 6/8/2023
0.0.1-alpha03 152 5/29/2023
0.0.1-alpha02 141 5/28/2023
0.0.1-alpha01 145 5/28/2023