- Update the project's status in the
README.md
file, if required. - Update the copyright statement in the
LICENSE.txt
file, if required. - Update the copyright statement in the
Directory.Build.props
file, if required. - Prepare a corresponding entry in the
CHANGELOG.md
file (usually by renaming the "Unreleased" section). - Set
<Version>
in theDirectory.Build.props
file. - Merge the aforementioned changes via a pull request.
- Check if the NuGet key is still valid (see the Rotate NuGet Publishing Key section if it isn't).
- Push a tag in form of
v<VERSION>
, e.g.v0.0.0
. GitHub Actions will do the rest (push a NuGet package).
CI relies on NuGet API key being added to the secrets. From time to time, this key requires maintenance: it will become obsolete and will have to be updated.
To update the key:
-
Sign in onto nuget.org.
-
Go to the API keys section.
-
Update the existing or create a new key named
truepath.github
with a permission to Push only new package versions and only allowed to publish the package TruePath.(If this is the first publication of a new package, upload a temporary short-living key with permission to add new packages, and rotate it afterward.)
-
Paste the generated key to the
NUGET_TOKEN
variable on the action secrets section of GitHub settings.