Skip to content

Commit

Permalink
feat: Added release related files
Browse files Browse the repository at this point in the history
  • Loading branch information
vahid-haghighat committed Jan 14, 2025
1 parent 80236e5 commit f7212d1
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
brews:
- url_template: "https://github.com/vahid-haghighat/tfbox/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
download_strategy: CurlDownloadStrategy
commit_author:
name: tfbox release bot
email: [email protected]
homepage: "https://github.com/vahid-haghighat/tfbox"
description: "Another terraform version selector, combined with docker"
license: "MIT"
test: system "#{bin}/tfbox --version"
install: bin.install "tfbox"
repository:
owner: brewdex
name: homebrew-tfbox
branch: main
token: "{{ .Env.BREWDEX_GITHUB_TOKEN }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

0 comments on commit f7212d1

Please sign in to comment.