Skip to content

Commit 0479b07

Browse files
authored
Update build version + fix goreleaser (#46)
1 parent a55991a commit 0479b07

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,13 @@ jobs:
2222
with:
2323
go-version: ^v1.24
2424

25-
- name: Build
26-
run: make build
27-
2825
# https://goreleaser.com/cmd/goreleaser_release/
2926
- name: Run GoReleaser
3027
uses: goreleaser/goreleaser-action@v6
3128
with:
3229
distribution: goreleaser
3330
version: "~> v2"
34-
args: release --config .goreleaser.yaml
31+
args: release --config .goreleaser.yaml --clean
3532
env:
3633
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3734

.goreleaser.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ builds:
2929
# https://goreleaser.com/customization/release/
3030
release:
3131
draft: true
32-
extra_files:
33-
- glob: ./dist/*
3432
header: |
3533
# 🚀 Features
3634
# 🎄 Enhancements

cmd/cli/main.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ var flags []cli.Flag = []cli.Flag{
2424

2525
func main() {
2626
app := &cli.App{
27-
Name: "httpserver",
28-
Usage: "Serve API, and metrics",
29-
Flags: flags,
30-
Action: runCli,
27+
Name: "cli",
28+
Usage: "command-line interface for your project",
29+
Version: common.Version,
30+
HideVersion: false,
31+
Flags: flags,
32+
Action: runCli,
3133
}
3234

3335
if err := app.Run(os.Args); err != nil {

cmd/httpserver/main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ var flags []cli.Flag = []cli.Flag{
5858

5959
func main() {
6060
app := &cli.App{
61-
Name: "httpserver",
62-
Usage: "Serve API, and metrics",
63-
Flags: flags,
61+
Name: "httpserver",
62+
Usage: "Serve API, and metrics",
63+
Version: common.Version,
64+
HideVersion: false,
65+
Flags: flags,
6466
Action: func(cCtx *cli.Context) error {
6567
listenAddr := cCtx.String("listen-addr")
6668
metricsAddr := cCtx.String("metrics-addr")

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/flashbots/go-template
22

3-
go 1.22.0
3+
go 1.24.0
44

55
require (
66
github.com/flashbots/go-utils v0.6.1-0.20240610084140-4461ab748667

0 commit comments

Comments
 (0)