Created
March 28, 2025 03:43
-
-
Save Segmentational/46807e8749b5353f277e29977bcb77bf to your computer and use it in GitHub Desktop.
Public Go Releaser CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
project_name: example-cli | |
env_files: | |
github_token: ~/.config/goreleaser/github_token | |
before: | |
hooks: | |
- go vet | |
- go mod tidy | |
- go mod vendor | |
- go generate ./... | |
builds: | |
- env: | |
- CGO_ENABLED=0 | |
ldflags: | |
- "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}" | |
goos: | |
- linux | |
- windows | |
- darwin | |
archives: | |
- format: tar.gz | |
name_template: >- | |
{{ .ProjectName }}- | |
{{- .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: | |
- name: example-cli | |
directory: Formula | |
commit_author: | |
name: Jacob B. Sanders | |
email: [email protected] | |
commit_msg_template: "[Chore]: Brew Formula Bump ({{ .ProjectName }}), {{ .Tag }}" | |
# caveats: | | |
# Internal Usage Only | |
homepage: "https://github.com/example-organization/example-cli" | |
description: "CLI" | |
license: "MIT" | |
skip_upload: false | |
download_strategy: CurlDownloadStrategy | |
dependencies: | |
- name: git | |
os: mac | |
- name: zsh | |
type: optional | |
- name: fish | |
type: optional | |
- name: bash | |
type: optional | |
conflicts: | |
- example-cli | |
repository: | |
branch: main | |
owner: example-organization | |
name: homebrew-taps | |
changelog: | |
use: github | |
sort: asc | |
abbrev: 0 | |
groups: | |
- title: "Features" | |
regexp: '^.*?(f|F)eature(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
order: 0 | |
- title: "Enhancements" | |
regexp: '^.*?(e|E)nhancement(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
order: 1 | |
- title: "Bug Fixes" | |
regexp: '^.*?(b|B)ug(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
order: 2 | |
- title: "Rollback" | |
regexp: '^.*?(r|R)evert(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
order: 3 | |
- title: "Chore" | |
regexp: '^.*?(c|C)hore(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
order: 4 | |
- title: "Documentation" | |
regexp: '^.*?(d|D)ocumentation(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
order: 5 | |
- title: "CI" | |
regexp: '^.*?(c|C)(i|I)(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
order: 6 | |
- title: "Refactor" | |
regexp: '^.*?(r|R)efactor(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
order: 7 | |
- title: "Internal" | |
regexp: '^.*?(i|I)nternal(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
order: 8 | |
- title: Others | |
order: 999 | |
# filters: | |
# include: | |
# - '^.*?(f|F)eature(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
# - '^.*?(e|E)nhancement(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
# - '^.*?(b|B)ug(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
# - '^.*?(r|R)evert(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
# - '^.*?(c|C)hore(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
# - '^.*?(d|D)ocumentation(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' | |
# - '^.*?(c|C)(i|I)(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment