forked from skaji/remote-pbcopy-iterm2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
85 lines (85 loc) · 1.84 KB
/
.goreleaser.yml
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
83
84
85
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod tidy
project_name: &name rpbcopy
brews:
- name: *name
tap:
owner: bottlerocketlabs
name: homebrew-apps
token: "{{ .Env.HOMEBREW_GITHUB_TOKEN }}"
folder: Formula
homepage: &homepage https://github.com/bottlerocketlabs/remote-pbcopy
description: &description rpbcopy for linux that works in the terminal over ssh
license: &license MIT
test: |
system "#{bin}/rpbcopy -h"
dependencies:
- name: go
install: |-
bin.install "rpbcopy"
builds:
- id: *name
main: "./cmd/rpbcopy"
binary: *name
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64
archives:
- replacements:
darwin: Darwin
linux: Linux
files:
- README.md
- LICENSE
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
- go mod tidy
nfpms:
- id: deb
formats:
- deb
description: *description
maintainer: "Stuart Warren"
license: *license
homepage: *homepage
- id: apk
file_name_template: "{{ .ProjectName }}-{{ .Version }}"
replacements:
amd64: x86_64
formats:
- apk
description: *description
maintainer: "Stuart Warren"
license: *license
homepage: *homepage
publishers:
- name: deb
ids:
- deb
cmd: hack/publish_deb {{ abs .ArtifactPath }} {{ .ArtifactName }} {{ replace .Arch "x86_64" "amd64" }}
env:
- ARTIFACTORY_USERNAME={{ .Env.ARTIFACTORY_USERNAME }}
- ARTIFACTORY_SECRET={{ .Env.ARTIFACTORY_SECRET }}
- name: apk
ids:
- apk
cmd: hack/publish_apk {{ abs .ArtifactPath }} {{ .ArtifactName }} {{ replace .Arch "amd64" "x86_64" }}
env:
- ARTIFACTORY_USERNAME={{ .Env.ARTIFACTORY_USERNAME }}
- ARTIFACTORY_SECRET={{ .Env.ARTIFACTORY_SECRET }}