Skip to content

Commit

Permalink
Add goreleaser support
Browse files Browse the repository at this point in the history
  • Loading branch information
ncw committed Oct 11, 2017
1 parent b8ac793 commit 55dd68c
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 29 deletions.
33 changes: 33 additions & 0 deletions .goreleaser.yml
@@ -0,0 +1,33 @@
# .goreleaser.yml
# Build customization
builds:
- binary: stressdisk
goos:
- windows
- darwin
- linux
- freebsd
- netbsd
goarch:
- amd64
- 386
- arm
- arm64

snapshot:
# Allows you to change the name of the generated snapshot
# releases. The following variables are available:
# - Commit
# - Tag
# - Timestamp
# Default is `SNAPSHOT-{{.Commit}}`.
name_template: "{{.Tag}}-DEV"

# Archive customization
archive:
format: zip
replacements:
darwin: macOS
files:
- README.md
- COPYING
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -20,7 +20,7 @@ StressDisk is a Go program and comes as a single binary file.

Download the relevant binary from

- http://www.craig-wood.com/nick/pub/stressdisk/
- https://github.com/ncw/stressdisk/releases

Or alternatively if you have Go installed use

Expand Down
17 changes: 17 additions & 0 deletions RELEASE.md
@@ -0,0 +1,17 @@
# Making a release #

Compile and test

Then run

goreleaser --rm-dist --snapshot

To test the build

When happy, tag the release

git tag -a v1.0.XX -m "Release v1.0.XX"

Then do a release build (set GITHUB token first)

goreleaser --rm-dist
28 changes: 0 additions & 28 deletions cross-compile

This file was deleted.

0 comments on commit 55dd68c

Please sign in to comment.