From 112031b59e7dafc33fa7e355f062a0465ee9c19a Mon Sep 17 00:00:00 2001 From: nikcode9 <129772745+nikcode9@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:29:39 +0530 Subject: [PATCH] Update .goreleaser.yml --- .goreleaser.yml | 42 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 22162bda..1beb7bc5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,25 +1,57 @@ -before: - hooks: - - go mod tidy +hooks: + - name: "go mod tidy" + command: "go mod tidy" + comment: "Tidy Go modules" + + - name: "lint" + command: "golint ./..." + comment: "Run code quality checks" + + - name: "test" + command: "go test ./..." + comment: "Run tests" + + - name: "build" + command: "go build" + comment: "Build the application" + builds: - env: - CGO_ENABLED=0 goos: - linux + goarch: + - amd64 + comment: "Build for Linux amd64" + + - env: + - CGO_ENABLED=0 + goos: - darwin + goarch: + - amd64 + comment: "Build for macOS amd64" + archives: - replacements: darwin: Darwin linux: Linux 386: i386 amd64: x86_64 + comment: "Archives replacements for different platforms" + checksum: name_template: 'checksums.txt' + comment: "Name template for checksums" + snapshot: - name_template: "{{ incpatch .Version }}-next" + name_template: "{{ .Version }}-{{ now | date '20060102T150405' }}-next" + comment: "Snapshot name template with version and timestamp" + changelog: sort: asc filters: exclude: - '^docs:' - - '^test:' \ No newline at end of file + - '^test:' + comment: "Changelog configuration"