Skip to content

Commit

Permalink
add goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Sep 4, 2020
1 parent e97e49b commit f1c42e6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
27 changes: 27 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/tfinstall/main.go
id: "tfinstall"
binary: tfinstall
goos:
- linux
- darwin
- windows
archives:
- files:
- none*
name_template: "tfinstall_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
5 changes: 5 additions & 0 deletions scripts/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,15 @@ function commitMain {
printf "ok!\n"
}

function createGitHubRelease {
curl -sL https://git.io/goreleaser | bash
}

function main {
init
changelogMain
commitMain
createGitHubRelease
}

main

0 comments on commit f1c42e6

Please sign in to comment.