betalgo/Betalgo-Nuget-Publisher

Publish .NET projects to NuGet and GitHub Packages with a dedicated .NET runner.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Nov 28, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: betalgo/nugetpublisher@5943dd14cb0aac3c9e9e542d1061d46eb18eb080 # v1.3.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
project-fileRelative path to the .csproj file that should be packed.yes
package-nameOptional override for the NuGet package ID.no
version-fileOptional path to the file that contains the version (defaults to the project file).no
version-regexOptional regex with a capture group for extracting the version when XML parsing is not applicable.no
version-regex-optionsRegexOptions flags separated by '|' (e.g. IgnoreCase|Multiline).no
version-staticExplicit version value. When provided no file parsing is performed.no
tag-commitCreate and push a git tag that uses tag-format.notrue
tag-formatTemplate for the git tag. The '*' placeholder is replaced with the calculated version.nov*
nuget-sourceBase NuGet service URL used for version discovery.nohttps://api.nuget.org
nuget-push-sourceFull NuGet server index used for dotnet nuget push.nohttps://api.nuget.org/v3/index.json
nuget-api-keyAPI key/token for the primary NuGet source. Required to publish.no
include-symbolsInclude symbol packages when packing.nofalse
configurationBuild configuration passed to dotnet (e.g. Release or Debug).noRelease
output-directoryDirectory for generated nupkg/snupkg files (defaults to a 'nupkg' folder next to the project file).no
cleanRun 'dotnet clean' before packing.notrue
publish-to-github-packagesAlso push the artifact to GitHub Packages.nofalse
github-packages-ownerOwner/organization for GitHub Packages (defaults to GITHUB_REPOSITORY_OWNER when empty).no
github-packages-sourceFully qualified GitHub Packages feed URL. When empty a URL is derived from the owner.no
github-packages-api-keyGitHub Packages token (often GITHUB_TOKEN with packages:write scope).no
github-packages-include-symbolsPush symbol packages to GitHub Packages too.nofalse
dotnet-version.NET SDK version used to run the single-file publisher.no10.0.x
git-user-nameGit user.name configured before tagging.nogithub-actions
git-user-emailGit user.email configured before tagging.noactions@github.com
dry-runExecute all checks but skip packing and pushing.nofalse
skip-when-version-existsStop early when the target version already exists on the NuGet source.notrue
extra-pack-argumentsAdditional arguments appended to 'dotnet pack'.no
no-restoreSkip the 'dotnet restore' step (pass --no-restore to pack).nofalse
continuous-integration-buildSet the ContinuousIntegrationBuild property to true.notrue
namedescription
package-nameFinal package ID that was evaluated.
versionVersion that was used for packing/publishing.
should-publishIndicates whether the version was missing from the NuGet feed.
publishedTrue when the action pushed to at least one feed.
package-pathFull path to the generated .nupkg file.
symbols-package-pathFull path to the generated .snupkg file when available.
tagGit tag that was created/pushed (when enabled).
github-packages-sourceGitHub Packages feed URL that received the push.