From 6aee1d2cecc716e33c46ceab32d7deedc00ef482 Mon Sep 17 00:00:00 2001 From: Nofre Date: Wed, 14 May 2025 21:02:10 +0200 Subject: [PATCH 1/3] chore(go): 1.24.2 go version switched on 1.24.3 --- go.mod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index c830ff8..c8c9ff0 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ module github.com/apiqube/cli -go 1.24.2 +go 1.24.3 require github.com/spf13/cobra v1.9.1 require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/spf13/pflag v1.0.6 // indirect -) +) \ No newline at end of file From 74083c8ccd6ddb74a2e45cc3c8958537a3d5a429 Mon Sep 17 00:00:00 2001 From: Nofre Date: Wed, 14 May 2025 21:10:33 +0200 Subject: [PATCH 2/3] chore(ci): ci updated added version building --- .github/workflows/ci.yml | 7 +++++++ Makefile | 3 +++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef105c3..12c4ad3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,6 +74,13 @@ jobs: echo "tag=$TAG" echo "tag=$TAG" >> $GITHUB_OUTPUT + - name: Build binary with version info + env: + VERSION: ${{ steps.get_tag.outputs.tag }} + run: | + mkdir -p bin + go build -ldflags "-X github.com/apiqube/cli/cmd.version=$VERSION" -o ./bin/qube ./cmd + - name: Create GitHub Release (if not exists) env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Makefile b/Makefile index 27b98cb..94d639f 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ BUILD_DIR=./bin .PHONY: build clean +install: + go install github.com/apiqube/cli@latest + build: @echo "🔧 Building $(BINARY_NAME) version $(VERSION)" go build \ From a0684e6c8df98a6f2adb78b10765ac47ba4c7d14 Mon Sep 17 00:00:00 2001 From: Nofre Date: Wed, 14 May 2025 21:11:06 +0200 Subject: [PATCH 3/3] chore(ci): ci updated --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12c4ad3..371eea4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,7 @@ jobs: VERSION: ${{ steps.get_tag.outputs.tag }} run: | mkdir -p bin - go build -ldflags "-X github.com/apiqube/cli/cmd.version=$VERSION" -o ./bin/qube ./cmd + go build -ldflags "-X github.com/apiqube/cli/cmd.version=$VERSION" -o ./bin/qube . - name: Create GitHub Release (if not exists) env: