feat: scaffold Go module with version command, Makefile and goreleaser config

This commit is contained in:
2026-08-22 21:41:05 +02:00
parent 8d34426864
commit 2a6498dae1
7 changed files with 163 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
version: 2
project_name: agent-lib
before:
hooks:
- go mod tidy
builds:
- id: agent-lib
env:
- CGO_ENABLED=0
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
ldflags:
- -s -w -X github.com/m3tam3re/agent-lib/internal/version.Version={{.Version}}
binary: agent-lib
checksum:
name_template: "checksums.txt"
archives:
- id: agent-lib
formats: [tar.gz]
format_overrides:
- goos: windows
formats: [zip]
release:
github:
owner: m3tam3re
name: agent-lib
draft: false
prerelease: auto
mode: append
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- Merge pull request
- Merge branch