Skip to content

Commit 3733255

Browse files
committed
feat(release): update release workflow to include ARM64 builds and version check
This commit enhances the GitHub Actions release workflow by: - Adding support for building ARM64 binaries for both Linux and macOS platforms. - Modifying the pre-release condition to only consider 'alpha' versions as pre-releases, simplifying the release process. These changes ensure that users can obtain binaries for a wider range of architectures, improving accessibility and usability of the GitAI tool.
1 parent 8086d2b commit 3733255

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
tag_name: ${{ steps.get_version.outputs.VERSION }}
5757
name: ${{ steps.get_version.outputs.VERSION }}
5858
draft: false # Set to true if you want to draft the release first
59-
prerelease: ${{ contains(steps.get_version.outputs.VERSION, 'alpha') || contains(steps.get_version.outputs.VERSION, 'beta') }}
59+
prerelease: ${{ contains(steps.get_version.outputs.VERSION, 'alpha') }}
6060
body: |
6161
## Release Notes for ${{ steps.get_version.outputs.VERSION }}
6262

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ To use GitAI, you need to have Go installed.
1717
```bash
1818
go build -o gitai
1919
```
20-
3. (Optional) Move the executable to your PATH:
20+
3. (Optional) Move the executable to your PATH and ensure it's executable:
2121
```bash
22-
mv gitai /usr/local/bin/
22+
sudo mv gitai /usr/local/bin/
23+
sudo chmod +x /usr/local/bin/gitai
2324
```
2425
2526
## Usage
2627
27-
Currently, GitAI provides a `commit` command to generate commit messages.
28+
Currently, GitAI provides a `commit` command to generate commit messages and a `version` command to check the CLI version.
2829
2930
### Generating Commit Messages
3031
@@ -36,6 +37,18 @@ gitai commit
3637
3738
The tool will analyze your staged changes and suggest a commit message.
3839
40+
### Check Version
41+
42+
To check the installed version of GitAI:
43+
44+
```bash
45+
gitai version
46+
```
47+
48+
## Downloadable Releases
49+
50+
Pre-built binaries for various operating systems and architectures are available on the [GitHub Releases page](https://github.com/richardamare/gitai/releases). Download the appropriate executable for your system.
51+
3952
## Environment Variables
4053
4154
GitAI requires your OpenAI API key to function. Set the `OPENAI_API_KEY` environment variable:

0 commit comments

Comments
 (0)