Skip to content

Commit

Permalink
build: switch from goxc to goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
mroth committed May 24, 2019
1 parent 2c1f4ad commit 9c5145a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin/
builds/
dist/
junk/
tmp/
.bundle/
Expand Down
31 changes: 31 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
ldflags:
- -s -w -X main.VERSION={{.Version}}
archives:
- replacements:
darwin: mac
amd64: x64
format_overrides:
- goos: windows
format: zip
files:
- LICENSE*
- README.md
- docs/*.txt
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
skip: true
19 changes: 0 additions & 19 deletions .goxc.json

This file was deleted.

5 changes: 2 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ end

desc "package for distribution"
task :package do
tagged_version = `script/version`.chomp()
sh "goxc -pv='#{tagged_version}'"
sh "goreleaser release --rm-dist --skip-publish"
end
CLOBBER.include "builds"
CLOBBER.include "dist"

task :all => [:build, :test, :features]
task :default => :all
File renamed without changes.

0 comments on commit 9c5145a

Please sign in to comment.