Skip to content

Commit

Permalink
introduction of goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
ttakuya50 committed May 23, 2020
1 parent f6286b7 commit 73e4e5f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: goreleaser
on:
push:
tags:
- '*'
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
goreleaser:
Expand Down
24 changes: 24 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
project_name: goor
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- main: .
binary: goor
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Revision={{.ShortCommit}}
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64

0 comments on commit 73e4e5f

Please sign in to comment.