Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
2 changes: 0 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ builds:
# https://goreleaser.com/customization/release/
release:
draft: true
extra_files:
- glob: ./dist/*
header: |
# 🚀 Features
# 🎄 Enhancements
Expand Down
10 changes: 6 additions & 4 deletions cmd/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 5 additions & 3 deletions cmd/httpserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down