As a Developer, I want NuGet packages to be automatically created from releases, so the process is repeatable.
ESTIMATE TBD
Acceptance Criteria
Scenario: NuGet packages created on release creation
Given A release branch exists
When a release is tagged
Then NuGet packages are created for each shared component.
Resources:
Notes
All components in the repository should have the same package version number. This is a manual process until we figure out a better way to manage it.
publish command is dotnet nuget push <project-path> --source github
This will give a warning: "warn : Please use the --api-key option when publishing to GitHub Packages". This is a known bug in the dotnet command.
As a Developer, I want NuGet packages to be automatically created from releases, so the process is repeatable.
Acceptance Criteria
Resources:
Notes
All components in the repository should have the same package version number. This is a manual process until we figure out a better way to manage it.
This comes from the Create Nuget Package of Base Classes and Tools issue in the dotnet-api-template repository.
Solution
Prerequisites
Tasks
Technical Notes
See: Configuring dotnet CLI for use with GitHub Packages
Run a workflow using the
publish
event with typecreate
publish command is
dotnet nuget push <project-path> --source github
This will give a warning: "warn : Please use the --api-key option when publishing to GitHub Packages". This is a known bug in thedotnet
command.You will need to explicitly configure the
github
source. See Authenticating to GitHub Packages