diff --git a/.goreleaser.yml b/.goreleaser.yml index 7842170..ddad54a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,6 @@ project_name: dispatch dist: ./goreleaser/dist +version: 2 before: hooks: @@ -9,7 +10,8 @@ gomod: proxy: true builds: - - main: . + - id: dispatch + main: . binary: dispatch mod_timestamp: "{{ .CommitTimestamp }}" @@ -22,6 +24,25 @@ builds: - linux - windows + - id: dispatch-docs + main: . + binary: dispatch-docs + mod_timestamp: "{{ .CommitTimestamp }}" + tags: docs + + goarch: + - amd64 + + goos: + - linux + +archives: + - id: dispatch + builds: [dispatch] + - id: dispatch-docs + builds: [dispatch-docs] + name_template: "{{ .ProjectName }}_docs_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + release: github: owner: dispatchrun @@ -34,6 +55,8 @@ changelog: brews: - name: dispatch + ids: + - dispatch url_template: "https://github.com/dispatchrun/dispatch/releases/download/{{ .Tag }}/{{ .ArtifactName }}" commit_author: diff --git a/go.mod b/go.mod index c23ccbd..c334c0c 100644 --- a/go.mod +++ b/go.mod @@ -9,6 +9,7 @@ require ( github.com/charmbracelet/lipgloss v0.9.1 github.com/joho/godotenv v1.5.1 github.com/muesli/reflow v0.3.0 + github.com/muesli/termenv v0.15.2 github.com/nlpodyssey/gopickle v0.3.0 github.com/pelletier/go-toml/v2 v2.2.0 github.com/spf13/cobra v1.8.0 @@ -31,7 +32,6 @@ require ( github.com/mattn/go-runewidth v0.0.15 // indirect github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b // indirect github.com/muesli/cancelreader v0.2.2 // indirect - github.com/muesli/termenv v0.15.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/rivo/uniseg v0.4.6 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect