Files
chatgpt-cli/docs/release_procedures.md
2024-08-17 10:00:15 -04:00

1.2 KiB

Release Procedures Manual

1. Update the dependencies

It's a good practice to update the dependencies before cutting a new release

./scripts/updatedeps.sh

2. Create a tag

Use the git-cli to create a tag, for example:

git tag -a v1.0.5 -m "Add list-models flag"

Next, push the tag:

git push origin --tags

3. Create binaries

From the root of kardolus/chatgpt-cli, run the following script to create binaries for various architectures:

./scripts/binaries.sh

4. Create a GitHub release

Create a GitHub release for the tag we just pushed out. Upload the binaries created in the previous step. Add this section with update instructions to the end:

## How to Update

### Using Homebrew (macOS)

\```shell 
brew upgrade chatgpt-cli
\```

### Direct Download

For a quick and easy installation without compiling, you can directly download the pre-built binary for your operating
system and architecture.

5. Bump the version

Change the URL in the Homebrew formulae (kardolus/homebrew-chatgpt-cli/HomebrewFormula/chatgpt-cli.rb). Update the sha256 of the tar file using:

sha256sum /path/to/tar/file