Publish a new Version - dotnet/android-libzipsharp GitHub Wiki
How to Publish a new version.
- Bump the
_LibZipSharpNugetVersion
MSbuild property in LibZipSharp.props to the next version. This can be done in the PR if the plan is to release that PR directly. Or submit a separate PR with the version bump if multiple commits are going to be published.
- Make sure the main build is green. https://devdiv.visualstudio.com/DevDiv/_build/latest?definitionId=11678&branchName=main
- Create a
tag
for the release
git checkout main
git pull origin main
git tag x.x.x
git push --tags
- Wait for the tag Pipeline to build. Make sure its green.
- Goto the Build Pipeline for LibZipSharp and note the build number for the tag. It should be in the form YYYYMMDD.XX
- Goto the Release Pipeline and click the "Run pipeline" button.
- Select the version to release. By default it will select the latest successful build. This will usually be the tag you just created.
- Be sure to double check that you have the correct build by navigating to "Advanced options" -> "Resources" -> "xamarin_LibZipSharp" and selecting the version you want to release. You can filter this to tagged builds only by typing "tag" in the search bar:
- Click "Run", which should open your newly created release pipeline instance.
- The "Push to NuGet.org" job will pause and wait for manual approval until someone presses the "Resume" button. This manual approval gate has a two hour timeout, and the "Retry Stage" button can be used after a timeout or rejection to begin a new push approval flow.
- Double check to make sure you have selected the right build to release, and click the "Resume" button.
- That should be all. The new Version should end up on NuGet.org in a few hours.