diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b11d87e..e2644d2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,16 +22,13 @@ jobs: with: go-version: ^v1.24 - - name: Build - run: make build - # https://goreleaser.com/cmd/goreleaser_release/ - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: "~> v2" - args: release --config .goreleaser.yaml + args: release --config .goreleaser.yaml --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 14fd69d..191fe0b 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -29,8 +29,6 @@ builds: # https://goreleaser.com/customization/release/ release: draft: true - extra_files: - - glob: ./dist/* header: | # 🚀 Features # 🎄 Enhancements diff --git a/cmd/cli/main.go b/cmd/cli/main.go index ea37d24..f99934e 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -24,10 +24,12 @@ var flags []cli.Flag = []cli.Flag{ func main() { app := &cli.App{ - Name: "httpserver", - Usage: "Serve API, and metrics", - Flags: flags, - Action: runCli, + Name: "cli", + Usage: "command-line interface for your project", + Version: common.Version, + HideVersion: false, + Flags: flags, + Action: runCli, } if err := app.Run(os.Args); err != nil { diff --git a/cmd/httpserver/main.go b/cmd/httpserver/main.go index 66e24c5..a5366cc 100644 --- a/cmd/httpserver/main.go +++ b/cmd/httpserver/main.go @@ -58,9 +58,11 @@ var flags []cli.Flag = []cli.Flag{ func main() { app := &cli.App{ - Name: "httpserver", - Usage: "Serve API, and metrics", - Flags: flags, + Name: "httpserver", + Usage: "Serve API, and metrics", + Version: common.Version, + HideVersion: false, + Flags: flags, Action: func(cCtx *cli.Context) error { listenAddr := cCtx.String("listen-addr") metricsAddr := cCtx.String("metrics-addr") diff --git a/go.mod b/go.mod index 774683b..b1134bb 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/flashbots/go-template -go 1.22.0 +go 1.24.0 require ( github.com/flashbots/go-utils v0.6.1-0.20240610084140-4461ab748667