Skip to content

Commit 30b988a

Browse files
author
Mattia Bertorello
committed
Add support for goreleaser
1 parent 414a52d commit 30b988a

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

Diff for: .goreleaser.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
project_name: arduino-cli
2+
3+
release:
4+
github:
5+
owner: arduino
6+
name: arduino-cli
7+
8+
builds:
9+
- env:
10+
- CGO_ENABLED=0
11+
goos:
12+
- linux
13+
- darwin
14+
- windows
15+
goarch:
16+
- 386
17+
- amd64
18+
- arm
19+
- arm64
20+
checksum:
21+
name_template: '{{ .ProjectName }}-{{ .Version }}-checksums.txt'
22+
changelog:
23+
sort: asc
24+
filters:
25+
exclude:
26+
- '^docs:'
27+
- '^test:'
28+
- '^dev:'
29+
- 'README'
30+
- Merge pull request
31+
- Merge branch
32+
git:
33+
short_hash: true
34+
35+
archive:
36+
format: tar.gz
37+
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
38+
replacements:
39+
darwin: osx
40+
linux: linux
41+
windows: windows
42+
386: 32bit
43+
amd64: 64bit
44+
format_overrides:
45+
- goos: windows
46+
format: zip
47+
- goos: darwin
48+
format: zip
49+
files:
50+
- README.md
51+
- LICENSE.txt

Diff for: .travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ script:
3434
after_success:
3535
- bash <(curl -s https://codecov.io/bash)
3636

37+
# calls goreleaser
38+
deploy:
39+
- provider: script
40+
skip_cleanup: true
41+
script: curl -sL https://git.io/goreleaser | bash
42+
on:
43+
tags: true
44+
condition: $TRAVIS_OS_NAME = linux
45+
3746
cache:
3847
directories:
3948
- $GOPATH/pkg/dep

0 commit comments

Comments
 (0)