Skip to content

Commit a9e83dc

Browse files
committed
Tweak release process re: man pages
1 parent af93bab commit a9e83dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.goreleaser.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ release:
66
before:
77
hooks:
88
- go mod tidy
9+
- make manpages
910

1011
builds:
1112
- <<: &build_defaults
@@ -17,8 +18,6 @@ builds:
1718
id: macos
1819
goos: [darwin]
1920
goarch: [amd64]
20-
hooks:
21-
pre: make manpages
2221

2322
- <<: *build_defaults
2423
id: linux
@@ -63,7 +62,7 @@ brews:
6362
depends_on "go"
6463
end
6564
install: |
66-
system "make" if build.head?
65+
system "make", "bin/gh", "manpages" if build.head?
6766
bin.install "bin/gh"
6867
man1.install Dir["./share/man/man1/gh*.1"]
6968
(bash_completion/"gh.sh").write `#{bin}/gh completion -s bash`

0 commit comments

Comments
 (0)