-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
70 lines (68 loc) · 1.98 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
# - example yml
# https://github.com/goreleaser/goreleaser/blob/master/.goreleaser.yml
# https://github.com/gopasspw/gopass/blob/master/.goreleaser.yml
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
#- go generate ./...
- cp configs/default.example.toml book-teacher.toml
- cp configs/teacher/default.example.json book-teacher.json
# https://goreleaser.com/customization/build/
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/book/
binary: book-teacher
goos:
- linux
- windows
- darwin
# https://goreleaser.com/customization/archive/
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
files:
- book-teacher.toml
- book-teacher.json
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^build:'
- '^images:'
- '^scripts:'
# https://goreleaser.com/customization/homebrew/
brews:
- tap:
owner: hiromaily
name: homebrew-tap
folder: Formula
description: find teacher's lesson
homepage: https://github.com/hiromaily/go-book-teacher
install: |
bin.install "book-teacher"
(etc/"book-teacher").install "book-teacher.toml"
(etc/"book-teacher").install "book-teacher.json"
test: |
system "#{bin}/book-teacher -v"
caveats: |
book-teacher has been installed, have fun!
config file has been installed in /usr/local/etc/book-teacher/book-teacher.toml
json file has been installed in /usr/local/etc/book-teacher/book-teacher.json
please modify these files as you want.
More information:
https://github.com/hiromaily/go-book-teacher