Skip to content

Commit

Permalink
fix: Better release
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Jan 19, 2023
1 parent 552bee7 commit 61a1cf3
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
env:
- PROJECT_DESCRIPTION=Inject output of any command into markdown files
- PROJECT_HOMEPAGE=https://stenic.io
- LICENSE=MIT

before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- "386"
- amd64
- arm
- arm64
goarm:
- "6"
- "7"
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '{{ .Env.VEMBED }}'

checksum:
name_template: 'checksums.txt'

archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE

brews:
- tap:
owner: stenic
name: homebrew-tap
folder: Formula
homepage: "{{ .Env.PROJECT_HOMEPAGE }}"
description: "{{ .Env.PROJECT_DESCRIPTION }}"
license: "{{ .Env.LICENSE }}"
test: |
system "#{bin}/{{ .ProjectName }} -v"
dependencies: []
install: |-
bin.install "{{ .ProjectName }}"
scoop:
bucket:
owner: stenic
name: scoop-bucket
homepage: "{{ .Env.PROJECT_HOMEPAGE }}"
description: "{{ .Env.PROJECT_DESCRIPTION }}"
license: "{{ .Env.LICENSE }}"

nfpms:
- file_name_template: '{{ .ConventionalFileName }}'
id: packages
homepage: "{{ .Env.PROJECT_HOMEPAGE }}"
description: "{{ .Env.PROJECT_DESCRIPTION }}"
maintainer: Dries De Peuter <[email protected]>
license: "{{ .Env.LICENSE }}"
vendor: Stenic
formats:
- apk
- deb
- rpm

0 comments on commit 61a1cf3

Please sign in to comment.