Skip to content

Commit

Permalink
Release CLI build with docs support
Browse files Browse the repository at this point in the history
  • Loading branch information
chicoxyzzy committed Jul 15, 2024
1 parent 88fdefd commit 87d0ad7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 25 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
project_name: dispatch
dist: ./goreleaser/dist
version: 2

before:
hooks:
Expand All @@ -9,7 +10,8 @@ gomod:
proxy: true

builds:
- main: .
- id: dispatch
main: .
binary: dispatch
mod_timestamp: "{{ .CommitTimestamp }}"

Expand All @@ -21,6 +23,26 @@ builds:
- darwin
- linux

- id: dispatch-docs
main: .
binary: dispatch-docs
mod_timestamp: "{{ .CommitTimestamp }}"
tags: docs

goarch:
- amd64

goos:
- linux
- darwin

archives:
- id: dispatch
builds: [dispatch]
- id: dispatch-docs
builds: [dispatch-docs]
name_template: "{{ .ProjectName }}_docs_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

release:
github:
owner: dispatchrun
Expand All @@ -33,6 +55,8 @@ changelog:

brews:
- name: dispatch
ids:
- dispatch
url_template: "https://github.com/dispatchrun/dispatch/releases/download/{{ .Tag }}/{{ .ArtifactName }}"

commit_author:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 87d0ad7

Please sign in to comment.