-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.goreleaser.yml
60 lines (54 loc) · 1.68 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
project_name: doc2go
builds:
- env:
- CGO_ENABLED=0
goos: [darwin, linux, windows]
goarch: ["386", amd64, arm, arm64]
goarm: [5, 6, 7]
ignore:
- goos: windows
goarch: arm
- goos: darwin
goarch: arm
ldflags: '-s -w -X main._version={{.Version}}'
flags:
- -trimpath
archives:
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
aurs:
- name: doc2go-bin
homepage: https://github.com/abhinav/doc2go
description: "Your Go documentation, to-go."
maintainers:
- 'Abhinav Gupta <mail@abhinavg.net>'
license: "Apache"
git_url: "ssh://aur@aur.archlinux.org/doc2go-bin.git"
skip_upload: auto
private_key: '{{ .Env.AUR_KEY }}'
package: |-
install -Dm755 "./doc2go" "${pkgdir}/usr/bin/doc2go"
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/doc2go/LICENSE"
install -Dm644 "./README.md" "${pkgdir}/usr/share/doc/doc2go/README.md"
install -Dm644 "./CHANGELOG.md" "${pkgdir}/usr/share/doc/doc2go/CHANGELOG.md"
commit_author:
name: Abhinav Gupta
email: mail@abhinavg.net
brews:
- repository:
owner: abhinav
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_msg_template: "{{ .ProjectName }}: Update formula to {{ .Tag }}"
commit_author:
name: Abhinav Gupta
email: mail@abhinavg.net
homepage: https://github.com/abhinav/doc2go
description: "Your Go documentation, to-go."
license: "Apache-2.0"
skip_upload: auto
test: |
system "#{bin}/doc2go -version"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incminor .Tag }}-dev"