-
Notifications
You must be signed in to change notification settings - Fork 16
/
.goreleaser.yaml
95 lines (83 loc) · 2.04 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
project_name: gbans
before:
hooks:
- make frontend
builds:
- id: gbans
env: [CGO_ENABLED=0]
goos:
- linux
- windows
goarch:
- amd64
tags:
- release
ldflags:
- -s -w -X github.com/leighmacdonald/gbans/internal/app.BuildVersion={{.Version}} -X github.com/leighmacdonald/gbans/internal/app.BuildCommit={{.Commit}} -X github.com/leighmacdonald/gbans/internal/app.BuildDate={{.Date}} -X main.builtBy=releaser
nfpms:
- maintainer: Leigh MacDonald <[email protected]>
description: TF2 Community Backend
homepage: https://github.com/leighmacdonald/gbans
license: MIT
formats:
- deb
- rpm
- apk
archives:
- builds:
- gbans
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
- gbans_example.yml
- sourcemod/plugins/gbans.smx
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
release:
github:
owner: leighmacdonald
name: gbans
draft: true
replace_existing_draft: true
prerelease: auto
changelog:
use: github-native
#signs:
# - artifacts: checksum
# args:
# - "--batch"
# - "-u"
# - "{{ .Env.GPG_FINGERPRINT }}"
# - "--output"
# - "${signature}"
# - "--detach-sign"
# - "${artifact}"
#sboms:
# - artifacts: archive
#announce:
# discord:
# enabled: true
# message_template: 'gbans {{.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