Add NuGet CI/CD workflows with MinVer versioning#7
Merged
Conversation
- ci.yml: build + test (net8.0/net10.0) on PRs to master - release.yml: auto-publish alpha prereleases on every merge to master; workflow_dispatch to cut beta/rc/stable — creates the git tag, publishes to nuget.org, opens a GitHub Release (softprops/action-gh-release@v3); stable is gated behind a nuget.org environment - Publish via NuGet trusted publishing (OIDC): NuGet/login@v1 exchanges a GitHub OIDC token for a short-lived key — no long-lived NUGET_API_KEY secret - Adopt MinVer (git-tag driven, prefix "v"); drop the hardcoded <Version>. First modern release is 2.0.0 (breaking: dropped netstandard/Framework, removed AddAppSettings). The legacy version-* tags belong to the old ExistAll.SimpleConfig package and are deliberately ignored. - Package quality: symbol packages (snupkg), SourceLink, deterministic builds, embedded README + icon; fix RepositoryUrl -> existall/SimpleSettings - Remove the non-functional dotnet.yml stub
860f93e to
6713b30
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds NuGet CI/CD for the SimpleSettings libraries, targeting
master. Replaces the non-functionaldotnet.ymlstub.ci.yml— PRs tomaster: restore, build, test on net8.0 + net10.0 (fromsrc/, MTP runner).release.yml— push tomasterauto-publishes an alpha prerelease to nuget.org;workflow_dispatch(channel: beta/rc/stable,bump: patch/minor/major) computes the next version, tags git, publishes, and creates a GitHub Release (softprops/action-gh-release@v3). Stable is gated behind anuget.orgEnvironment.NuGet/login@v1to exchange a GitHub OIDC token for a short-lived key. No long-livedNUGET_API_KEYsecret to store or rotate.v); removed the hardcoded<Version>. First modern release is2.0.0(breaking vs the published netstandard1.0.0). Legacyversion-*tags (oldExistAll.SimpleConfigpackage) are ignored.RepositoryUrl→existall/SimpleSettings.Merging to
masterimmediately triggersrelease.yml(alpha publish). Set up trusted publishing first, or the login/push step fails:existall, RepositorySimpleSettings, Workflow Filerelease.yml, Environment blank (so it covers both the push-on-master job and the dispatch job).NUGET_USER= your nuget.org profile name (not email; not a credential).nuget.orgGitHub Environment + required reviewer to gate stable releases.Note: private-repo policies start in a 7-day activation window until the first successful publish locks them to the repo/owner IDs.
Verified locally (on top of master)
dotnet build -c Release→ 0/02.0.0-alpha.0.N;dotnet pack→ 4 nupkg + 4 snupkg (icon/README/SourceLink)dotnet test -f net10.0→ 39/39