From bcdaa2d1548138ee886cbf6c024fb9186ae54be6 Mon Sep 17 00:00:00 2001 From: micovi Date: Tue, 16 Jan 2024 16:48:01 +0200 Subject: [PATCH] add goreleaser --- .gitignore | 3 ++- .goreleaser.yaml | 43 +++++++++++++++++++++++++++++++++++++++++++ go.mod | 8 +++++--- go.sum | 1 + 4 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 .goreleaser.yaml diff --git a/.gitignore b/.gitignore index 6a575cf..3f790ca 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -./vanity-forge \ No newline at end of file +./vanity-forge +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..7c9c204 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,43 @@ +# This is an example .goreleaser.yml file with some sensible defaults. +# Make sure to check the documentation at https://goreleaser.com + +# The lines below are called `modelines`. See `:help modeline` +# Feel free to remove those if you don't want/need to use them. +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 fo=cnqoj + +version: 1 + +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + +archives: + - format: tar.gz + # this name template makes the OS and Arch compatible with the results of `uname`. + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + # use zip for windows archives + format_overrides: + - goos: windows + format: zip + +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:" diff --git a/go.mod b/go.mod index 2824dab..9a06752 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ -module 01node.com/cross-vanity +module 01node.com/vanity-forge -go 1.20 +go 1.21 + +toolchain go1.21.6 require ( github.com/charmbracelet/huh v0.2.3 @@ -8,6 +10,7 @@ require ( github.com/cosmos/cosmos-sdk v0.50.3 github.com/spf13/pflag v1.0.5 github.com/tendermint/tendermint v0.35.9 + golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 ) require ( @@ -41,7 +44,6 @@ require ( github.com/yuin/goldmark v1.6.0 // indirect github.com/yuin/goldmark-emoji v1.0.2 // indirect golang.org/x/crypto v0.16.0 // indirect - golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 // indirect golang.org/x/net v0.19.0 // indirect golang.org/x/sync v0.4.0 // indirect golang.org/x/sys v0.15.0 // indirect diff --git a/go.sum b/go.sum index a407a10..0589e3e 100644 --- a/go.sum +++ b/go.sum @@ -932,6 +932,7 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/subosito/gotenv v1.3.0/go.mod h1:YzJjq/33h7nrwdY+iHMhEOEEbW0ovIz0tB6t6PwAXzs= github.com/subosito/gotenv v1.4.0/go.mod h1:mZd6rFysKEcUhUHXJk0C/08wAgyDBFuwEYL7vWWGaGo=