Skip to content

Commit 7392f7d

Browse files
author
LoukaO
committed
Remove 'v' prefix from all version displays
- Support tags with and without 'v' prefix in workflow triggers - Remove 'v' prefix from Linux ELF binary version info - Ensure consistent version format (numbers and dots only) everywhere - Update workflow to handle both v1.0.4 and 1.0.4 tag formats
1 parent 31359c9 commit 7392f7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ on:
44
push:
55
tags:
66
- 'v*'
7+
- '[0-9]+.[0-9]+.[0-9]+'
78
workflow_dispatch:
89
inputs:
910
version:
10-
description: 'Version to build (e.g., v1.0.3)'
11+
description: 'Version to build (e.g., 1.0.3 or v1.0.3)'
1112
required: true
1213
type: string
1314

@@ -215,7 +216,7 @@ jobs:
215216
GOOS=linux GOARCH=amd64 go build -ldflags "$BUILD_FLAGS" -o terminusai-linux-amd64 ./cmd/terminusai
216217
217218
# Add version info to ELF binary using objcopy
218-
echo "TerminusAI v$VERSION_NO_V" > version.txt
219+
echo "TerminusAI $VERSION_NO_V" > version.txt
219220
echo "Build Date: $BUILD_DATE" >> version.txt
220221
echo "Copyright © 2024 TerminusAI" >> version.txt
221222
objcopy --add-section .version=version.txt terminusai-linux-amd64

0 commit comments

Comments
 (0)