Skip to content

Commit

Permalink
replace custom release with goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
mhristof committed Nov 23, 2021
1 parent c4317f8 commit 95219d8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 44 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/release.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This is an example .goreleaser.yml 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 tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- binary: gitbrowse
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
ldflags:
- -X github.com/mhristof/gitbrowse/cmd.version={{ .Version }}
archives:
- replacements:
darwin: Darwin
linux: Linux
format: binary
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit 95219d8

Please sign in to comment.