Skip to content

Commit c95dc3f

Browse files
committed
workflow added tag v0012
1 parent 03d8252 commit c95dc3f

4 files changed

Lines changed: 38 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
# Variables
44
BINARY_NAME=ti
5-
VERSION=0.1.0
5+
VERSION=0.0.1.2
66
BUILD_DIR=build
77
GO=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)))
99
GOFLAGS=-ldflags="-s -w -X main.version=$(VERSION) -X main.buildNumber=$(BUILD_NUMBER)"
1010

1111
# Default target

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ param(
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

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)
1717
var buildNumber = "dev"

0 commit comments

Comments
 (0)