An open API service indexing awesome lists of open source software.

https://github.com/codebeltnet/nuget-push

An opinionated GitHub Action for publishing NuGet packages as part of your CD flow.
https://github.com/codebeltnet/nuget-push

Last synced: 4 months ago
JSON representation

An opinionated GitHub Action for publishing NuGet packages as part of your CD flow.

Awesome Lists containing this project

README

          

# NuGet Push from Codebelt

Uses the NuGet CLI `nuget push` [command](https://learn.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-push) that pushes a package to a package source and publishes it. Leverages the official [setup-nuget action](https://github.com/nuget/setup-nuget/) pre-configured specifically for the majority.

> This action is part of the Codebelt umbrella and ensures a consistent way of:
>
> - Defining your CI/CD pipeline
> - Structuring your repository
> - Keeping your codebase small and feasible
> - Writing clean and maintainable code
> - Deploying your code to different environments
> - Automating as much as possible
>
> A paved path to excel as a DevSecOps Engineer.

## Usage

To use this action in your GitHub repository, you can follow these steps:

```yaml
uses: codebeltnet/nuget-push@v2
```

### Inputs

```yaml
with:
# The NuGet package source URL. Default is https://api.nuget.org/v3/index.json.
source: 'https://api.nuget.org/v3/index.json'
# Sets the verbosity level of the command.
# Allowed values are quiet, normal and detailed.
verbosity-level: 'quiet'
```

### Outputs

This action has no outputs.

## Examples

### Deploy to nuget.org

```yaml
steps:
- name: Push packages to NuGet
uses: codebeltnet/nuget-push@v2
```

> [!TIP]
> To have a complete experience for pushing NuGet packages to a feed, consider using the [jobs-nuget-push](https://github.com/codebeltnet/jobs-nuget-push) reusable workflow.

## Caller workflows to showcase the Codebelt experience

### Basic CI/CD Pipeline

- Bootstrapper API - https://github.com/codebeltnet/bootstrapper/blob/main/.github/workflows/pipelines.yml
- Extensions for Asp.Versioning API - https://github.com/codebeltnet/asp-versioning/blob/main/.github/workflows/pipelines.yml
- Extensions for AWS Signature Version 4 API - https://github.com/codebeltnet/aws-signature-v4/blob/main/.github/workflows/pipelines.yml
- Extensions for Globalization API - https://github.com/codebeltnet/globalization/blob/main/.github/workflows/pipelines.yml
- Extensions for Newtonsoft.Json API - https://github.com/codebeltnet/newtonsoft-json/blob/main/.github/workflows/pipelines.yml
- Extensions for Swashbuckle.AspNetCore API - https://github.com/codebeltnet/swashbuckle-aspnetcore/blob/main/.github/workflows/pipelines.yml
- Extensions for xUnit API - https://github.com/codebeltnet/xunit/blob/main/.github/workflows/pipelines.yml
- Extensions for YamlDotNet API - https://github.com/codebeltnet/yamldotnet/blob/main/.github/workflows/pipelines.yml
- Shared Kernel API - https://github.com/codebeltnet/shared-kernel/blob/main/.github/workflows/pipelines.yml
- Unitify API - https://github.com/codebeltnet/unitify/blob/main/.github/workflows/pipelines.yml

### Intermediate CI/CD Pipeline

- Savvy I/O - https://github.com/codebeltnet/savvyio/blob/main/.github/workflows/pipelines.yml

### Advanced CI/CD Pipeline

- Cuemon for .NET - https://github.com/gimlichael/Cuemon/blob/main/.github/workflows/pipelines.yml

## Contributing to NuGet Push from Codebelt

Contributions are welcome!
Feel free to submit issues, feature requests, or pull requests to help improve this action.

### License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

> [!TIP]
> To learn more about the Codebelt experience and offerings, visit our [organization page](https://github.com/codebeltnet) on GitHub.