-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
68 lines (67 loc) · 1.28 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
version: 2
builds:
- id: gh-pr-comment
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
main: ./cmd/gh-pr-comment/main.go
binary: gh-pr-comment
ldflags:
- "-s -w"
- id: gh-pr-upload
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
main: ./cmd/gh-pr-upload/main.go
binary: gh-pr-upload
ldflags:
- "-s -w"
archives:
- builds:
- gh-pr-comment
- gh-pr-upload
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- gh-pr-comment-env.sh
- src: scripts/gh-pr-comment-exec
dst: ./
strip_parent: true
before:
hooks:
- cp env.sh gh-pr-comment-env.sh
checksum:
name_template: 'checksums.txt'
signs:
- artifacts: checksum
args:
- "--batch"
- "--no-tty"
- "--passphrase={{ .Env.SIGN_KEY_PASSPHRESE }}"
- "--pinentry-mode=loopback"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
extra_files:
- glob: ./install.sh
- glob: ./install.sh.sig
- glob: ./env.sh
- glob: ./env.sh.sig