actions-marketplace-validations/Publish NuGet@linch90

Build, Pack & Publish a NuGet package with dotnet core on project version change

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*
NUGET_KEYAPI key to authenticate with NuGet serverno
NUGET_SOURCENuGet server uri hosting the packages, defaults to https://api.nuget.orgnohttps://api.nuget.org
V3_FLAT_CONTAINERThe resource url segment used for fetching package content, defaults to v3-flatcontainernov3-flatcontainer
INCLUDE_SYMBOLSFlag to toggle pushing symbols along with nuget package to the server, disabled by defaultnofalse
NO_BUILDFlag to toggle not building the project and letting pack command handle restoring & building, disabled by defaultnofalse
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