forked from determ1ne/grsical
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yaml
68 lines (63 loc) · 1.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
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
dist: ./build
builds:
- id: "zjuical"
env:
- CGO_ENABLED=0
main: ./cmd/zjuical
binary: zjuical
ldflags:
- -s -w -X zju-ical/internal/zjuical.version={{.Commit}}
goos:
- linux
- windows
- darwin
- id: "zjuicalsrv"
env:
- CGO_ENABLED=0
main: ./cmd/zjuicalsrv
binary: zjuicalsrv
ldflags:
- -s -w
# - -X zju-ical/internal/zjuicalsrv/cli.version={{.Commit}}
goos:
- linux
- windows
- darwin
archives:
-
id: zjuical-arch
builds:
- zjuical
name_template: "zjuical_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
- README.md
- configs/*
-
id: zjuicalsrv-arch
builds:
- zjuicalsrv
name_template: "zjuicalsrv_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
- README.md
- configs/*
- web/*
checksum:
name_template: 'checksums.txt'
release:
draft: true
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'