-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
82 lines (74 loc) · 2.05 KB
/
.goreleaser.yaml
File metadata and controls
82 lines (74 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Documentation https://goreleaser.com
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
hooks:
- go mod tidy
builds:
- binary: flow
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags: >-
-s -w
-X "github.com/flowexec/flow/internal/version.gitCommit={{ .Commit }}"
-X "github.com/flowexec/flow/internal/version.version={{ .Version }}"
-X "github.com/flowexec/flow/internal/version.buildDate={{ .Date }}"
gomod:
proxy: false
archives:
- formats: [ 'tar.gz' ]
files:
- LICENSE
- README.md
- scripts/completions
name_template: >-
{{ .Binary }}_
{{- .Tag }}_
{{- .Os }}_
{{- .Arch }}
homebrew_casks:
- name: flow
binary: flow
homepage: https://flowexec.io
license: Apache-2.0
repository:
owner: flowexec
name: homebrew-tap
token: "{{ .Env.HOMEBREW_FLOW_GITHUB_TOKEN }}"
completions:
bash: scripts/completions/flow.bash
zsh: scripts/completions/flow.zsh
fish: scripts/completions/flow.fish
# dependencies:
# - cask: xclip # Required for clipboard support, only linux, so I need to figure out to get this to skip macOS
hooks:
post:
install: |
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/flow"]
end
# Docker builds migrated to ko via flow executables
# Use: flow build multiarch --dry-run (local testing)
# flow publish docker --tag=vX.Y.Z (CI only)
changelog:
sort: asc
groups:
- title: "New features"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: "Documentation updates"
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
order: 2
- title: "Miscellaneous"
order: 999