Skip to content

Commit 1a1e341

Browse files
committed
add goreleaser
1 parent 897bb87 commit 1a1e341

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.goreleaser.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
project_name: signer
2+
release:
3+
draft: false
4+
github:
5+
owner: salrashid123
6+
name: signer
7+
name_template: '{{.Tag}}'
8+
extra_files:
9+
builds:
10+
- skip: true
11+
scoop:
12+
name: signer
13+
commit_author:
14+
name: sal
15+
16+
commit_msg_template: Scoop update for {{ .ProjectName }} version {{ .Tag }}
17+
goamd64: v1
18+
archives:
19+
- id: archive
20+
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
21+
format: tar.gz
22+
files:
23+
- LICENSE*
24+
- README*
25+
- dist/*.sig
26+
snapshot:
27+
name_template: '{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}'
28+
checksum:
29+
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
30+
algorithm: sha256
31+
dist: dist
32+
signs:
33+
- cmd: gpg
34+
id: gpg
35+
artifacts: all
36+
output: true
37+
args:
38+
- "--batch"
39+
- "--local-user"
40+
- "{{ .Env.GPG_FINGERPRINT }}" # "5D8EA7261718FE5728BA937C97341836616BF511" [email protected] https://keyserver.ubuntu.com/pks/lookup?search=5D8EA7261718FE5728BA937C97341836616BF511&fingerprint=on&op=index
41+
- "--output"
42+
- "${signature}"
43+
- "--detach-sign"
44+
- "${artifact}"
45+
env_files:
46+
github_token: ~/.config/goreleaser/github_token
47+
source:
48+
name_template: '{{ .ProjectName }}-{{ .Version }}'
49+
format: tar.gz
50+
gomod:
51+
gobinary: go
52+
github_urls:
53+
download: https://github.com

0 commit comments

Comments
 (0)