-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
.goreleaser.yml
80 lines (76 loc) · 1.95 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
# AC_USERNAME= AC_PASSWORD= goreleaser release --rm-dist --parallelism 1
before:
hooks:
- go mod tidy
builds:
- binary: pmtiles
id: go-pmtiles
env:
- CGO_ENABLED=0
flags:
- -trimpath
goos:
- linux
- windows
goarch:
- amd64
- arm64
- binary: pmtiles
id: pmtiles-macos-amd64
env:
- CGO_ENABLED=0
flags:
- -trimpath
goos:
- darwin
goarch:
- amd64
hooks:
post:
- cmd: 'codesign -s "Developer ID Application: Brandon Liu (WNSC27EEHU)" -v {{ .Path }} --options=runtime'
output: true
- cmd: zip -j "{{ .Path }}_signed.zip" {{ .Path }}
- cmd: xcrun notarytool submit "{{ .Path }}_signed.zip" --apple-id {{ .Env.AC_USERNAME }} --password {{ .Env.AC_PASSWORD }} --team-id WNSC27EEHU --wait
- mv {{ .Path }}_signed.zip dist/go-pmtiles-{{ .Version }}_Darwin_x86_64.zip
- binary: pmtiles
id: pmtiles-macos-arm64
env:
- CGO_ENABLED=0
flags:
- -trimpath
goos:
- darwin
goarch:
- arm64
hooks:
post:
- cmd: 'codesign -s "Developer ID Application: Brandon Liu (WNSC27EEHU)" -v {{ .Path }} --options=runtime'
output: true
- cmd: zip -j "{{ .Path }}_signed.zip" {{ .Path }}
- cmd: xcrun notarytool submit "{{ .Path }}_signed.zip" --apple-id {{ .Env.AC_USERNAME }} --password {{ .Env.AC_PASSWORD }} --team-id WNSC27EEHU --wait
- mv {{ .Path }}_signed.zip dist/go-pmtiles-{{ .Version }}_Darwin_arm64.zip
archives:
- id: default
builds:
- go-pmtiles
replacements:
linux: Linux
windows: Windows
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
disable: true
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
extra_files:
- glob: ./dist/*_Darwin_arm64.zip
- glob: ./dist/*_Darwin_x86_64.zip