Skip to content

Commit

Permalink
Add goreleaser
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
  • Loading branch information
katexochen committed Apr 4, 2023
1 parent ff9d048 commit 138fe0a
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ghh
body.md
metadata.json

dist/
52 changes: 52 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
- go mod tidy
- go generate ./...
- govulncheck -v ./...
- actionlint
- golangci-lint run

builds:
- env:
- CGO_ENABLED=0
flags: -trimpath
ldflags: -buildid=
goos:
- linux
- darwin

archives:
- format: tar.gz
rlcp: true
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
builds_info:
group: root
owner: root
mode: 0644
mtime: 1970-01-01T00:00:00.000000001Z
files:
- LICENSE
- README.md
- info:
group: root
owner: root
mode: 0644
mtime: 1970-01-01T00:00:00.000000001Z

release:
github:
owner: katexochen
name: ghh
draft: true
replace_existing_draft: true
mode: replace

changelog:
use: github
sort: asc
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json

0 comments on commit 138fe0a

Please sign in to comment.