Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 2.21 KB

RELEASE_PROCEDURE.md

File metadata and controls

65 lines (40 loc) · 2.21 KB

This document lists the steps that lead to a successful release of Topgrade.

  1. Open a PR that:

    Here is an Example PR that you can refer to.

    1. bumps the version number.

      If there are breaking changes, the major version number should be increased.

    2. Overwrite BREAKINGCHANGES with BREAKINGCHANGES_dev, and create a new dev file:

      $ cd topgrade
      $ cp BREAKINGCHANGES_dev.md BREAKINGCHANGES.md
      $ touch BREAKINGCHANGES_dev.md
      
  2. Check and merge that PR.

  3. Go to the release page and click the Draft a new release button

  4. Write the release notes

    We usually use GitHub's Automatically generated release notes functionality to generate release notes, but you write your own one instead.

  5. Attaching binaries

    You don't need to do this as our CI will automatically do it for you, binaries for Linux, macOS and Windows will be created and attached.

    And the CI will publish the new binary to:

    1. AUR
    2. PyPi
    3. Homebrew (seems that this is not working correctly)
    4. Winget
  6. Manually release it to Crates.io

    Yeah, this is unfortunate, our CI won't do this for us. We should probably add one.

    1. cd to the Topgrade directory, make sure that it is the latest version (i.e., including the PR that bumps the version number).
    2. Set up your token with cargo login.
    3. Dry-run the publish cargo publish --dry-run.
    4. If step 3 works, then do the final release cargo publish.

    You can also take a look at the official tutorial Publishing on crates.io