From babee3dbcd8872abbdbb281aecbc89d8185e4fcf Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Thu, 29 Aug 2024 12:07:30 -0600 Subject: [PATCH] Added hook to create man page and include in release --- .goreleaser.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ceee709..9cdcf94 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -3,6 +3,9 @@ version: 2 before: hooks: - go mod download + - go install github.com/cpuguy83/go-md2man/v2 + - go-md2man -in README.md -out manpage.1 + builds: - env: - CGO_ENABLED=1 @@ -25,6 +28,7 @@ archives: - CHANGELOG.md - README.md - bin/magellan.sh + - magellan.1 dockers: - image_templates: