Repository navigation
Trusted publishing and release preparation for 11.0.0 - #18
Merged
Merged
Conversation
- release.yml replaces publish.yml. On a v* tag it runs the full test suite (fast and integration), checks the tag matches <VersionPrefix> and that docs/releases.md has a section for the version, packs AsyncMonolith and AsyncMonolith.TestHelpers, exchanges GitHub's OIDC token for a one-hour nuget.org key with NuGet/login, pushes the packages and symbols, and creates the GitHub release from the release notes with the packages attached. Running it manually is a dry run that stops before publishing. Publishing runs in the "release" environment so approvals can be required. - The test workflow packs both packages on every push and PR, so package validation and metadata problems show up before a release. - RELEASING.md covers the one-off nuget.org and GitHub setup, each release, and deprecating the five merged packages afterwards. - The 11.0.0 notes gain upgrade steps, drop a stale item about ConsumerRegistry, say "deduplication key", and use an absolute docs link that works on the GitHub release page.
The profile name isn't sensitive, so the workflow names it directly instead of reading a NUGET_USER secret.
GeneratePackageOnBuild packed as part of every build, and with an explicit dotnet pack it tried to pack before the assembly was built (NU5026), so packing only worked when an earlier Release build had left the DLL behind. CI's new pack step caught it, and the release workflow's pack job would have failed the same way. Packing is explicit now, so the two published projects are marked with IsAsyncMonolithPackage instead, which Directory.Build.targets uses for the package metadata. Packing from a clean checkout works and the packages keep their licence, README, icon, XML docs and symbols.
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.
#17 was merged against a stale head, so these last three commits from that branch didn't reach
main.release.ymlreplacespublish.yml. On av*tag it runs the full test suite, checks the tag matches<VersionPrefix>and thatdocs/releases.mdhas a section for it, packsAsyncMonolithandAsyncMonolith.TestHelpers, logs in to nuget.org asaptacodewith GitHub's OIDC token (NuGet/login@v1), pushes the packages and symbols, and creates the GitHub release from the notes. Running it manually is a dry run.GeneratePackageOnBuildmadedotnet packtry to pack before the assembly was built (NU5026). The published projects are now marked withIsAsyncMonolithPackage, and the test workflow packs both packages on every push and PR.RELEASING.md: upgrade steps, corrected wording and an absolute docs link in the 11.0.0 notes, plus the release checklist.Testing
3e8839e.