Skip to content

Commit

Permalink
add releaaser
Browse files Browse the repository at this point in the history
  • Loading branch information
pyama86 committed Jan 30, 2020
1 parent 1913868 commit 23e3e02
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ git-semv:
brew install git-semv

goreleaser:
brew install goreleaser/tap/goreleaser
brew install goreleaser
which goreleaser || (brew install goreleaser/tap/goreleaser && brew install goreleaser)

ci: unit_test lint
lint: deps
Expand All @@ -36,7 +35,7 @@ unit_test: ## Run test
$(GO) tool cover -func cover.out
$(GO) test -race $(TEST)

release: releasedeps
release: goreleaser
git semv patch --bump
goreleaser --rm-dist
run:
Expand Down
24 changes: 24 additions & 0 deletions goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
builds:
- id: pam-google-web-oauth
binary: pam-google-web-oauth
goos:
- linux
goarch:
- amd64
ldflags:
-X main.Version={{.Version}}
nfpms:
-
id: pam-google-web-oauth-nfpms
name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
builds:
- pam-google-web-oauth
homepage: https://github.com/pyama86/pam-google-web-oauth
maintainer: pyama86 <[email protected]>
description: pam module by google oauth
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
epoch: 1

0 comments on commit 23e3e02

Please sign in to comment.