actions-marketplace-validations/Publish NuGet 2

Build, pack & publish nuget packages on project version change. Works with GPR. Forked from brandedoutcast/publish-nuget

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
Runtime
Deprecated runtime
namedescriptionrequireddefault
PROJECT_FILE_PATHFilepath of the project to be packaged, relative to root of repositoryyes
PACKAGE_NAMENuGet package id, used for version detection & defaults to project nameno
VERSION_FILE_PATHFilepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATHno
VERSION_REGEXRegex pattern to extract version info in a capturing groupno^\s*<Version>(.*)<\/Version>\s*$
VERSION_STATICUseful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEXno
TAG_COMMITFlag to toggle git tagging, enabled by defaultnotrue
TAG_FORMATFormat of the git tag, [*] gets replaced with actual versionnov*
GITHUB_USERRequired for packages pushed to Github Package Registry. User allowed to push to repository, defaults to GITHUB_ACTOR (user that triggered the action)no
NUGET_KEYAPI key to authenticate with NuGet server, or a token, issued for GITHUB_USER if you use GPRno
NUGET_SOURCENuGet server uri hosting the packages, defaults to https://api.nuget.orgnohttps://api.nuget.org
INCLUDE_SYMBOLSFlag to toggle pushing symbols along with nuget package to the server, disabled by defaultnofalse
THOW_ERROR_IF_VERSION_EXISTSFlag to throw an error when trying to publish an existing version of a packagenofalse
PACK_NO_BUILDAdds the `--no-build` option to the `dotnet pack` command. Enabled by default.notrue
namedescription
VERSIONVersion of the associated git tag
PACKAGE_NAMEName of the NuGet package generated
PACKAGE_PATHPath to the generated NuGet package
SYMBOLS_PACKAGE_NAMEName of the symbols package generated
SYMBOLS_PACKAGE_PATHPath to the generated symbols package