Skip to content

Commit 94e237e

Browse files
committed
fix: specify branch reference in action and fix readme
1 parent 3dd0dfd commit 94e237e

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

.github/workflows/release-cli.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- name: Checkout repository
3434
uses: actions/checkout@v5
3535
with:
36+
ref: v4.x
3637
fetch-depth: 0
3738

3839
- name: Update version file
@@ -44,4 +45,4 @@ jobs:
4445
git config user.email "github-actions[bot]@users.noreply.github.com"
4546
git add internal/version/checker.go
4647
git commit -m "chore: update version to $TAG"
47-
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git v4.x
48+
git push origin v4.x

HOW-TO-RELEASE.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@ This guide explains the release process for the Coolify CLI.
1010

1111
## Release Process
1212

13-
### 1. Commit and Push Version Change
14-
15-
```bash
16-
git add cmd/root.go
17-
git commit -m "chore: bump version to 1.x.x"
18-
git push origin v4.x
19-
```
20-
21-
### 2. Create a GitHub Release
13+
### 1. Create a GitHub Release
2214

2315
1. Go to https://github.com/coollabsio/coolify-cli/releases/new
2416
2. Click "Choose a tag" and create a new tag:
@@ -43,7 +35,7 @@ git push origin v4.x
4335
```
4436
5. Click "Publish release"
4537

46-
### 3. Automated Build Process
38+
### 2. Automated Build Process
4739

4840
Once you publish the release:
4941

@@ -58,7 +50,7 @@ Once you publish the release:
5850
- GitHub: `https://github.com/coollabsio/coolify-cli/releases/tag/v1.x.x`
5951
- Install script: `curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash`
6052

61-
### 5. Verify the Release
53+
### 3. Verify the Release
6254

6355
After the workflow completes (usually 2-5 minutes):
6456

internal/version/checker.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ func CheckLatestVersionOfCli(debug bool) (string, error) {
9393
latestVersion := versions[len(versions)-1]
9494

9595
// Compare versions properly using semantic versioning
96-
// Strip prerelease suffix for comparison if present
97-
currentVersionStr := GetVersion()
98-
currentVersion, err := compareVersion.NewVersion(currentVersionStr)
96+
currentVersion, err := compareVersion.NewVersion(GetVersion())
9997
if err != nil {
10098
return latestVersion.String(), err
10199
}

0 commit comments

Comments
 (0)