-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
80 lines (73 loc) · 2.17 KB
/
Copy path.goreleaser.yml
File metadata and controls
80 lines (73 loc) · 2.17 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
project_name: context-dev
version: 2
before:
hooks:
- mkdir -p completions
- sh -c "go run ./cmd/context-dev/main.go @completion bash > completions/context-dev.bash"
- sh -c "go run ./cmd/context-dev/main.go @completion zsh > completions/context-dev.zsh"
- sh -c "go run ./cmd/context-dev/main.go @completion fish > completions/context-dev.fish"
- sh -c "go run ./cmd/context-dev/main.go @manpages -o man"
builds:
- id: macos
goos: [darwin]
goarch: [amd64, arm64]
binary: '{{ .ProjectName }}'
main: ./cmd/context-dev/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
- id: linux
goos: [linux]
goarch: ['386', arm, amd64, arm64]
env:
- CGO_ENABLED=0
binary: '{{ .ProjectName }}'
main: ./cmd/context-dev/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
- id: windows
goos: [windows]
goarch: ['386', amd64, arm64]
binary: '{{ .ProjectName }}'
main: ./cmd/context-dev/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
archives:
- id: linux-archive
ids: [linux]
name_template: '{{ .ProjectName }}_{{ .Version }}_linux_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
formats: [tar.gz]
files:
- completions/*
- man/*/*
- id: macos-archive
ids: [macos]
name_template: '{{ .ProjectName }}_{{ .Version }}_macos_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
formats: [zip]
files:
- completions/*
- man/*/*
- id: windows-archive
ids: [windows]
name_template: '{{ .ProjectName }}_{{ .Version }}_windows_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
formats: [zip]
files:
- completions/*
- man/*/*
snapshot:
version_template: '{{ .Tag }}-next'
nfpms:
- license: Apache-2.0
maintainer: hello@context.dev
bindir: /usr
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
contents:
- src: man/man1/*.1.gz
dst: /usr/share/man/man1/