-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
53 lines (53 loc) · 1.46 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
project_name: golang-jwt-signer
release:
draft: false
github:
owner: salrashid123
name: golang-jwt-signer
name_template: '{{.Tag}}'
extra_files:
builds:
- skip: true
scoop:
name: golang-jwt-signer
commit_author:
name: sal
email: salrashid123@gmail.com
commit_msg_template: Scoop update for {{ .ProjectName }} version {{ .Tag }}
goamd64: v1
archives:
- id: archive
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format: tar.gz
files:
- LICENSE*
- README*
- dist/*.sig
snapshot:
name_template: '{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
algorithm: sha256
dist: dist
signs:
- cmd: gpg
id: gpg
artifacts: all
output: true
args:
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}" # "5D8EA7261718FE5728BA937C97341836616BF511" salrashid123@gmail.com https://keyserver.ubuntu.com/pks/lookup?search=5D8EA7261718FE5728BA937C97341836616BF511&fingerprint=on&op=index
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
env_files:
github_token: ~/.config/goreleaser/github_token
source:
name_template: '{{ .ProjectName }}-{{ .Version }}'
format: tar.gz
gomod:
gobinary: go
github_urls:
download: https://github.com