This repository has been archived by the owner on Mar 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
94 lines (76 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
## Scripts to run before anything else..
before:
hooks:
- GO111MODULE=on make install
## If Go code needs to be generated:
# - go generate ./...
## Configure how the binaries are built.
builds:
- env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- windows
- darwin
- linux
binary: quest
ldflags:
- "-X github.com/stevenxie/{{.ProjectName}}/cmd.Version={{.Version}}"
## Create an archive with built binaries and the README, license, etc.
archive:
name_template: "{{.ProjectName}}-{{.Version}}-{{.Os}}-{{.Arch}}"
wrap_in_directory: true
replacements:
darwin: macOS
linux: linux
windows: win
i386: 386
amd64: x86_64
## Pack archive in 'tar.gz' for Linux.
format: "zip"
format_overrides:
- goos: linux
format: tar.gz
files:
- LICENSE*
- README*
- autocomplete/**/*
- resources/**/*
## Create a checksums file to allow verifying the integrity of the downloads.
checksum:
name_template: checksums.txt
## Generate a changelog using recent commits.
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
## Create a project snapshot without releasing.
snapshot:
name_template: "{{.ShortCommit}}-SNAPSHOT"
## Release to Github Releases.
release:
name_template: "{{.ProjectName}}-{{.Tag}}"
## Release to Homebrew.
brew:
## Formula information:
description: A command-line client for the UW Quest Information System.
homepage: https://github.com/stevenxie/quest-cli
## Custom install / test scripts:
install: |
bin.install "quest"
bash_completion.install "autocomplete/bash/quest"
zsh_completion.install "autocomplete/zsh/quest"
test: quest --version
## Brew tap information:
github:
owner: stevenxie
name: homebrew-tap
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: goreleaser-bot
email: [email protected]
## Where to put formula inside tap repository.
folder: Formula