actions-marketplace-validations/Publish NuGet (Private Nuget.Server)
Build, Pack & Publish a NuGet package to a private Nuget.Server source on version change. Original - Rohith Reddy (@rohith)
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| PROJECT_FILE_PATH | Filepath of the project to be packaged, relative to root of repository | yes | — |
| BUILD_CONFIGURATION | Configuration to build and package (default is Release) | no | Release |
| BUILD_PLATFORM | Platform target to compile (default is empty/AnyCPU) | no | — |
| NUSPEC_FILE | file path to nuspec file | no | — |
| PACKAGE_NAME | NuGet package id, used for version detection & defaults to project name | no | — |
| VERSION_FILE_PATH | Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH | no | — |
| VERSION_REGEX | Regex pattern to extract version info in a capturing group | no | ^\s*<(Package|)Version>(.*)<\/(Package|)Version>\s*$ |
| VERSION_STATIC | Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX | no | — |
| TAG_COMMIT | Flag to toggle git tagging, enabled by default | no | true |
| TAG_FORMAT | Format of the git tag, [*] gets replaced with actual version | no | v* |
| NUGET_KEY | API key to authenticate with NuGet server | no | — |
| NUGET_SOURCE | NuGet server uri hosting the packages, defaults to https://api.nuget.org | no | https://api.nuget.org |
| INCLUDE_SYMBOLS | Flag to toggle pushing symbols along with nuget package to the server, disabled by default | no | false |
Outputs
| name | description |
|---|---|
| VERSION | Version of the associated git tag |
| PACKAGE_NAME | Name of the NuGet package generated |
| PACKAGE_PATH | Path to the generated NuGet package |
| SYMBOLS_PACKAGE_NAME | Name of the symbols package generated |
| SYMBOLS_PACKAGE_PATH | Path to the generated symbols package |