Skip to content

Commit c431645

Browse files
committed
Update
1 parent 282efb1 commit c431645

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

.goreleaser.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
build:
2+
main: cmd/filemanager/main.go
3+
binary: filemanager
4+
goos:
5+
- darwin
6+
- linux
7+
- windows
8+
- freebsd
9+
- netbsd
10+
- openbsd
11+
goarch:
12+
- amd64
13+
- 386
14+
- arm
15+
- arm64
16+
archive:
17+
name_template: "{{.Os}}-{{.Arch}}-{{ .ProjectName }}"
18+
format: tar.gz
19+
format_overrides:
20+
- goos: windows
21+
format: zip

.travis.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ env:
1414

1515
install:
1616
- go get ./...
17-
- go get github.com/mitchellh/gox
1817
# Install gometalinter and certain linters
1918
- go get github.com/alecthomas/gometalinter
2019
- go get github.com/client9/misspell/cmd/misspell
@@ -26,16 +25,5 @@ script:
2625
- gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --exclude="rice-box.go" --tests ./...
2726
- go test ./... -timeout 30s
2827

29-
before_deploy:
30-
- cd cmd/filemanager
31-
- mkdir dist
32-
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
33-
34-
deploy:
35-
provider: releases
36-
api_key: $GITHUB_TOKEN
37-
file_glob: true
38-
file: dist/*
39-
skip_cleanup: true
40-
on:
41-
tags: true
28+
after_success:
29+
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash

0 commit comments

Comments
 (0)