Skip to content

Commit b5ade4e

Browse files
chore: add releasing guide
Signed-off-by: Mathew Wicks <[email protected]>
1 parent 56f0079 commit b5ade4e

File tree

2 files changed

+25
-19
lines changed

2 files changed

+25
-19
lines changed

README.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ This repo contains the command line interface (CLI) for [deployKF](https://githu
88

99
You can install the `deploykf` CLI by downloading the appropriate binary for your OS from the [releases page](https://github.com/deployKF/cli/releases).
1010
- You may wish to rename the binary to `deploykf` (or `deploykf.exe` on Windows).
11-
- On Unix-like systems, you may need to make the binary executable by running `chmod +x deploykf`.
11+
- You may need to make the binary executable on Linux/macOS by running `chmod +x deploykf`.
12+
- You may also wish to move the binary to a directory that is in your `PATH` environment variable.
13+
- On Linux/macOS you might run `sudo mv deploykf /usr/local/bin/`.
14+
- On Windows you might run `move deploykf.exe C:\Windows\System32\`.
1215

1316
## Usage
1417

@@ -32,21 +35,3 @@ Here are some helpful commands when developing the CLI:
3235
- `make install`: Installs the binary to `/usr/local/bin`.
3336
- `make lint`: Runs `golangci-lint` against the codebase to check for errors.
3437
- `make lint-fix`: Attempts to automatically fix any linting errors found.
35-
36-
## Releasing
37-
38-
To release a new version of the CLI, follow these steps:
39-
40-
1. For a new minor or major release, create a `release-*` branch first.
41-
- For example, for the `v0.2.0` release, create a new branch called `release-0.2`.
42-
- This allows for the continued release of bug fixes to older CLI versions.
43-
2. Create a new tag on the appropriate release branch for the version you are releasing.
44-
- Ensure you sign the tag with your GPG key.
45-
- You can do this by running `git tag -s v0.1.1 -m "v0.1.1"`.
46-
- You can verify the tag by running `git verify-tag v0.1.1`.
47-
- For instance, you might create `v0.1.1` or `v0.1.1-alpha.1` on the `release-0.1` branch.
48-
- Remember to create tags only on the `release-*` branches, not on the `main` branch.
49-
3. When a new semver tag is created, a workflow will automatically create a GitHub draft release.
50-
- The release will include binaries and corresponding SHA256 checksums for all supported platforms.
51-
- Don't forget to add the changelog to release notes.
52-
4. Manually publish the draft release.

RELEASING.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Releasing Guide
2+
3+
This guide is intended for maintainers who want to make a new release of the deployKF CLI.
4+
5+
1. For a new minor or major release, create a `release-*` branch first.
6+
- For example, for the `v0.2.0` release, create a new branch called `release-0.2`.
7+
- This allows for the continued release of bug fixes to older versions.
8+
2. Create a new tag on the appropriate release branch for the version you are releasing.
9+
- For instance, you might create `v0.1.1` or `v0.1.1-alpha.1` on the `release-0.1` branch.
10+
- Ensure you ONLY create tags on the `release-*` branches, not on the `main` branch.
11+
- Remember to sign the tag with your GPG key.
12+
- You can do this by running `git tag -s v0.1.1 -m "v0.1.1"`.
13+
- You can verify the tag signature by running `git verify-tag v0.1.1`.
14+
- Ensure you ONLY push the specific tag you want to release.
15+
- For example, if you want to release `v0.1.1`, you should run `git push origin v0.1.1`.
16+
- Do NOT run `git push origin --tags` or `git push origin main`.
17+
3. When a new semver tag is created, a workflow will automatically create a GitHub draft release.
18+
- The release will include the binaries and corresponding SHA256 checksums for all supported platforms.
19+
- Don't forget to add a changelog to the release description.
20+
- You can use the "generate release notes" feature of GitHub to help you with this.
21+
4. Manually publish the draft release.

0 commit comments

Comments
 (0)