f2calv/.NET Build/Test/Pack/Push
Performs steps required to push a versioned NuGet package to the official NuGet and/or GitHub packages feeds.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Apr 1, 2026
- License
- MIT
Pinned Snippet
uses: f2calv/gha-dotnet-nuget@13be5c8e9cffbfdb204bdfc4c229b0bd96ef4077 # v2.1.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| checkout | Checkout the current repository? | — | true |
| version | NuGet package version e.g. 1.2.301-feature-my-feature.12 | yes | — |
| GITHUB_TOKEN | GitHub token to push to GitHub packages e.g. secrets.GITHUB_TOKEN | — | — |
| NUGET_API_KEY | NuGet API key to push to nuget.org feed e.g. secrets.NUGET_API_KEY | — | — |
| configuration | .NET Configuration e.g. Debug or Release | — | Release |
| solution-name | Specify exactly which .NET solution or project to build when multiple exist. e.g. MySolution.sln or MyProject.csproj | — | "" |
| push | Should we push packages? | — | true |
| push-preview | Push a pre-release NuGet package from a non-default branch? The version's SemVer pre-release suffix (e.g. 1.2.3-my-feature.4) signals preview status to NuGet. | — | false |
| execute-tests | Execute unit tests. Default is 'true' | — | true |
| code-coverage | Execute code coverage tools. Default is 'true' | — | true |
| dotnet-restore-args | Optional 'dotnet restore' arguments. | — | "" |
| dotnet-build-args | Optional 'dotnet build' arguments. | — | "" |
| dotnet-test-args | Optional 'dotnet test' arguments. | — | "" |
| dotnet-pack-args | Optional 'dotnet pack' arguments. | — | "" |
| dotnet-push-args | Optional 'dotnet push' arguments. | — | "" |
| package-filter | Comma-separated list of package ID prefixes to push e.g. 'CasCap.Common.Caching,CasCap.Common.Extensions'. When empty all packages are pushed. | — | "" |
Outputs
| name | description |
|---|---|
| configuration | .NET Configuration e.g. Debug or Release |