Publish a new Version - dotnet/android-libzipsharp GitHub Wiki

How to Publish a new version.

  1. 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.
  2. Make sure the main build is green. https://devdiv.visualstudio.com/DevDiv/_build/latest?definitionId=11678&branchName=main
  3. Create a tag for the release
git checkout main
git pull origin main
git tag x.x.x
git push --tags
  1. Wait for the tag Pipeline to build. Make sure its green.
  2. Goto the Build Pipeline for LibZipSharp and note the build number for the tag. It should be in the form YYYYMMDD.XX
  3. Goto the Release Pipeline and click the "Run pipeline" button.
  4. Select the version to release. By default it will select the latest successful build. This will usually be the tag you just created.
  5. 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:
  1. Click "Run", which should open your newly created release pipeline instance.
  2. 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.
  3. Double check to make sure you have selected the right build to release, and click the "Resume" button.
  4. That should be all. The new Version should end up on NuGet.org in a few hours.