-
Notifications
You must be signed in to change notification settings - Fork 15
Release Guide
The goal of this guide is to help you create a new log-cache-cli public release. Please free to suggest changes based on your experience with this guide.
Releases are currently published on a best-effort cadence.
Contributors with write access may cut releases as-needed to fix bugs, bump dependencies for stability, or introduce new features. The ultimate goal is signal to users that there is a new Log Cache cf CLI plugin with those changes available, and that it's available to users for download from this repo or as a community plugin download community plugin.
💡 Each change is made from the
main
branch.
Check if the code is in a good state to be released.
- Go to the main branch and see that it passed the "Unit tests and lint" Github Action, it should be represented as a green check next to the commit SHA.
- Clone the repo and run any steps that you feel are required to ensure that the plugin is in a good state to be released. Typically, this should involve building and installing the plugin, as well as testing it against a cf-d environment.
Decide on a version number for the new release
- Take note of the version number of last release (ie. 4.0.3).
- Review the changes made since the last release.
- Decide whether this should be a major, minor, or patch release according to semantic versioning.
- Decide on your new release's version number by incrementing the version number of the last release by a
- major (ie. 4.0.3 -> 5.0.0),
- minor (ie. 4.0.3 -> 4.1.0),
- or patch (ie. 4.0.3 -> 4.0.4).
💡 Please visit the semver webpage if you're aren't familiar with semantic versioning.
Generate builds for Darwin, Linux, and Windows, and cut a draft release with them.
- Go to the "Release from main" Github action view.
- Select "Run workflow", and enter your new release's version number (Note: please omit the semver "v" prefix here*).
- Wait for the workflow to succeed. Take appropriate action if it fails.
Publish the release.
- Go to the log-cache-cli releases page.
- Locate your draft release at the top and hit the edit icon.
- Make sure you specify the Golang version that the plugin is built with! The workflow should include it for you at the top.
- Edit the release notes for clarity.
- Hit publish release 🎉 .
Update the community plugin repo in order for users to be able to easily install your release (without downloading the binary directly) via cf install-plugin log-cache
.
- Follow the steps in the repo's README to create a PR updating the log-cache-cli version listed.