File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
7+
8+ jobs :
9+ build-and-release :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : write # Needed for creating a release
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+ with :
18+ fetch-depth : 0 # Need full history for versioning/build number
19+
20+ - name : Set up Go
21+ uses : actions/setup-go@v5
22+ with :
23+ go-version : ' 1.25.x'
24+
25+ - name : Build all platforms
26+ run : make all-platforms
27+
28+ - name : Create Release
29+ uses : softprops/action-gh-release@v2
30+ with :
31+ files : build/*
32+ draft : false
33+ prerelease : false
34+ generate_release_notes : true
Original file line number Diff line number Diff line change 22
33# Variables
44BINARY_NAME =ti
5- VERSION =0.1.0
5+ VERSION =0.0.1.2
66BUILD_DIR =build
77GO =go
8- BUILD_NUMBER =$(shell echo $$(($(shell git rev-list --count HEAD 2>/dev/null || echo "0") + 1 ) ) )
8+ BUILD_NUMBER =$(shell printf " % 04d" $$(($(shell git rev-list --count HEAD 2>/dev/null || echo "0") + 1 ) ) )
99GOFLAGS=-ldflags ="-s -w -X main.version=$(VERSION ) -X main.buildNumber=$(BUILD_NUMBER ) "
1010
1111# Default target
Original file line number Diff line number Diff line change 44)
55
66$BINARY_NAME = " ti"
7- $VERSION = " 0.1.2"
7+ $VERSION = " 0.0. 1.2"
88$BUILD_DIR = " build"
99
1010# Get build number from git
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
1111 "github.com/user/terminal-intelligence/internal/ui"
1212)
1313
14- const version = "0.1.0"
14+ var version = "0. 0.1.0"
1515
1616// Build number (injected at compile time via -ldflags)
1717var buildNumber = "dev"
You can’t perform that action at this time.
0 commit comments