Skip to content

Commit

Permalink
feat: add release configuration (#10)
Browse files Browse the repository at this point in the history
* feat: add release configuration

* fix: name wrong

* fix: name wrong

* fix: release configuration

* fix: release configuration

* fix: release configuration

* fix: release configuration
  • Loading branch information
JieTrancender authored Jul 7, 2022
1 parent 20ad9d2 commit 97fba1f
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- v*

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
Expand Down
51 changes: 51 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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 download
# you may remove this if you don't need go generate
- go generate ./...
builds:
-
id: "nsq-tool-kit"
main: ./cmd/nsq-consumer/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ignore:
-
goos: windows
goarch: arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
wrap_in_directory: true
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
- templates/**/*
- conf/*.yaml
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit 97fba1f

Please sign in to comment.