Skip to content

Commit 4945a26

Browse files
committed
Release CLI build with docs support
1 parent e47c0f6 commit 4945a26

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.goreleaser.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
project_name: dispatch
22
dist: ./goreleaser/dist
3+
version: 2
34

45
before:
56
hooks:
@@ -9,7 +10,8 @@ gomod:
910
proxy: true
1011

1112
builds:
12-
- main: .
13+
- id: dispatch
14+
main: .
1315
binary: dispatch
1416
mod_timestamp: "{{ .CommitTimestamp }}"
1517

@@ -22,6 +24,25 @@ builds:
2224
- linux
2325
- windows
2426

27+
- id: dispatch-docs
28+
main: .
29+
binary: dispatch-docs
30+
mod_timestamp: "{{ .CommitTimestamp }}"
31+
tags: docs
32+
33+
goarch:
34+
- amd64
35+
36+
goos:
37+
- linux
38+
39+
archives:
40+
- id: dispatch
41+
builds: [dispatch]
42+
- id: dispatch-docs
43+
builds: [dispatch-docs]
44+
name_template: "{{ .ProjectName }}_docs_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
45+
2546
release:
2647
github:
2748
owner: dispatchrun
@@ -34,6 +55,8 @@ changelog:
3455

3556
brews:
3657
- name: dispatch
58+
ids:
59+
- dispatch
3760
url_template: "https://github.com/dispatchrun/dispatch/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
3861

3962
commit_author:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ require (
99
github.com/charmbracelet/lipgloss v0.9.1
1010
github.com/joho/godotenv v1.5.1
1111
github.com/muesli/reflow v0.3.0
12+
github.com/muesli/termenv v0.15.2
1213
github.com/nlpodyssey/gopickle v0.3.0
1314
github.com/pelletier/go-toml/v2 v2.2.0
1415
github.com/spf13/cobra v1.8.0
@@ -31,7 +32,6 @@ require (
3132
github.com/mattn/go-runewidth v0.0.15 // indirect
3233
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b // indirect
3334
github.com/muesli/cancelreader v0.2.2 // indirect
34-
github.com/muesli/termenv v0.15.2 // indirect
3535
github.com/pmezard/go-difflib v1.0.0 // indirect
3636
github.com/rivo/uniseg v0.4.6 // indirect
3737
github.com/russross/blackfriday/v2 v2.1.0 // indirect

0 commit comments

Comments
 (0)