Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 1.66 KB

RELEASE.md

File metadata and controls

68 lines (46 loc) · 1.66 KB

Release Process

Releasing a major or minor version

Prerequisites:

  • Install goreleaser:
    go install github.com/goreleaser/goreleaser@latest

Steps:

  1. Determine the release version:

    • Identify the MAJOR, MINOR, and PATCH version numbers for the release.
    • For example:
      MAJOR="1"
      MINOR="2"
      PATCH="3" 
  2. Create a release branch:

    • Create a release branch using the format release-${MAJOR}.${MINOR}:

      git checkout -b release-${MAJOR}.${MINOR}
    • Push the release branch to the upstream repository:

      git push upstream release-${MAJOR}.${MINOR} 
  3. Create and push a tag:

    • Create a new tag using the format v${MAJOR}.${MINOR}.${PATCH}:

      git tag v${MAJOR}.${MINOR}.${PATCH}
    • Push the release branch to the upstream repository:

      git push upstream v${MAJOR}.${MINOR}.${PATCH}
  4. Build release artifacts:

    • Use goreleaser to build the release artifacts:

      goreleaser release --clean --skip-publish 

      This command generates the release artifacts in the dist directory.

  5. Create a GitHub release:

    • Go to the project's GitHub repository and navigate to the New Releases page.
    • Select the newly created tag (v${MAJOR}.${MINOR}.${PATCH}) from the "Choose a tag" dropdown.
    • Attach the relevant release artifacts (.tar.gz and .zip files) from the dist directory.
    • Publish the release.