Skip to content

Commit

Permalink
goreleaser setup
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksaan committed Oct 28, 2020
1 parent 629d54f commit 7402f2c
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 24 deletions.
46 changes: 22 additions & 24 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
# - go mod download
# you may remove this if you don't need go generate
# - go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
env_files:
github_token: c:/_goenv/src/github.com/aleksaan/github_token/token_aleksaan.txt
github_token: C:/_goworkspace/src/github.com/aleksaan/github_token/token_aleksaan.txt
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^docs:'
- '^test:'
36 changes: 36 additions & 0 deletions .goreleaser_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
env_files:
github_token: c:/_goenv/src/github.com/aleksaan/github_token/token_aleksaan.txt
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
Binary file removed diskusage.zip
Binary file not shown.
Binary file added goreleaser.exe
Binary file not shown.

0 comments on commit 7402f2c

Please sign in to comment.