-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
54 lines (52 loc) · 1.2 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
version: 2
before:
hooks:
- go mod tidy
builds:
- id: webhook-go
binary: webhook-go
env:
- CGO_ENABLED=0
main: .
goos:
- linux
goarch:
- amd64
flags:
- -trimpath
ldflags:
- -s -w
archives:
- format: binary
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
use: github-native
nfpms:
- id: default
package_name: webhook-go
homepage: https://github.com/ustclug-dev/webhook-go
maintainer: "iBug <i@ibugone.com>"
description: |-
A simple webhook for GitHub events
formats:
- deb
umask: 0o022
section: admin
priority: extra
scripts:
postinstall: etc/postinst.sh
preremove: etc/prerm.sh
contents:
- src: README.md
dst: /usr/share/doc/webhook-go/
- src: etc/config.yml
dst: /etc/webhook-go/config.example.yml
- src: etc/webhook-go.service
dst: /lib/systemd/system/
# modelines, feel free to remove those if you don't want/use them:
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj