-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.goreleaser.yaml
111 lines (97 loc) · 2.3 KB
/
.goreleaser.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
project_name: bd
dist: build
before:
hooks:
- make frontend
builds:
- id: linux
env: [CGO_ENABLED=0]
goos:
- linux
goarch:
- amd64
- 386
mod_timestamp: '{{ .CommitTimestamp }}'
tags:
- release
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate }} -X main.builtBy=releaser
- id: windows
env: [CGO_ENABLED=0]
goos:
- windows
goarch:
- amd64
# There is no 32bit support for sqlite on win
mod_timestamp: '{{ .CommitTimestamp }}'
tags:
- release
flags:
- -trimpath
ldflags:
- -H=windowsgui -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate }} -X main.builtBy=releaser
nfpms:
- maintainer: Leigh MacDonald <[email protected]>
description: TF2 Bot Detector & Player Tracker
homepage: https://github.com/leighmacdonald/bd
license: MIT
formats:
- deb
- rpm
archives:
- builds:
- linux
- windows
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
files:
- LICENSE.md
- README.md
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
release:
github:
owner: leighmacdonald
name: bd
ids:
- linux
- windows
draft: true
replace_existing_draft: true
changelog:
use: github-native
signs:
- artifacts: checksum
args:
- "--batch"
- "-u"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
announce:
discord:
enabled: true
message_template: 'Bot Detector {{.Tag}} is out!'
# Set author of the embed.
# Defaults to `GoReleaser`
author: 'Leigh MacDonald'
# color: ''
# URL to an image to use as the icon for the embed.
# Defaults to `https://goreleaser.com/static/avatar.png`
# icon_url: ''
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj