Skip to content

Instantly share code, notes, and snippets.

@adaszko
Last active August 12, 2022 10:15
Show Gist options
  • Select an option

  • Save adaszko/b3eb5c72d921a26d28c2a13baf5fb768 to your computer and use it in GitHub Desktop.

Select an option

Save adaszko/b3eb5c72d921a26d28c2a13baf5fb768 to your computer and use it in GitHub Desktop.

radicle-cli Release Guide

  1. Select a tip commit for the release to point to

  2. Edit the Cargo.toml and bump the version number there

  3. Run cargo build to ensure everything builds (this should modify Cargo.lock too automatically).

  4. Commit the changes to Cargo.toml and Cargo.lock.

  5. Create a git tag with the same version number as in Cargo.toml via a command: git tag vx.x.x

  6. Push the newly-created tag: git push origin vx.x.x

  7. Wait for the GitHub Actions to complete. It should create a new release at https://github.com/radicle-dev/radicle-cli/releases/

  8. Go to the latest release under https://github.com/radicle-dev/radicle-cli/releases/ and download radicle-cli-x86_64-apple-darwin.tar.gz from there.

  9. Compute sha256 of that radicle-cli-x86_64-apple-darwin.tar.gz file

  10. Create a patch to the Homebrew formula at https://seed.alt-clients.radicle.xyz/radicle-cli-homebrew.git/ that updates the version number and sha256 hash. An example patch looks like that:

    diff --git i/Formula/radicle-cli.rb w/Formula/radicle-cli.rb
    index 1907279..23eb7cf 100644
    --- i/Formula/radicle-cli.rb
    +++ w/Formula/radicle-cli.rb
    @@ -1,10 +1,10 @@
    class RadicleCli < Formula
    -  version "0.6.0"
    +  version "0.6.1"
    desc "Radicle CLI"
    homepage "https://app.radicle.network/alt-clients.radicle.eth/radicle-cli"
    
    url "https://github.com/radicle-dev/radicle-cli/releases/download/v#{version}/radicle-cli-x86_64-apple-darwin.tar.gz"
    -  sha256 "6f0afb72a8630e3e7f331f1e74c80ba64d7918320d9234aff8acadd79ab68459"
    +  sha256 "8a35472cd57737c38295b3db50ddc84c0e17016eaa12eecfdf56d0214438db41"
    
    depends_on "git"
    
  11. Merge the patch to master

  12. Test the Homebrew Formula by doing: brew update && brew upgrade radicle-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment