1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00
This commit is contained in:
Carlos Alexandro Becker 2017-01-14 15:16:29 -02:00
parent 77bf22b01b
commit 20f46dc05c
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -7,7 +7,7 @@ import (
"github.com/goreleaser/releaser/context"
)
var defaultFiles = []string{"LICENCE", "LICENSE", "README", "CHANGELOG"}
var defaultFiles = []string{"licence", "license", "readme", "changelog"}
// Pipe for brew deployment
type Pipe struct{}
@ -75,7 +75,7 @@ func findFiles() (files []string, err error) {
func accept(file string) bool {
for _, accepted := range defaultFiles {
if strings.HasPrefix(file, accepted) {
if strings.HasPrefix(strings.ToLower(file), accepted) {
return true
}
}