-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
93 lines (80 loc) · 1.76 KB
/
.goreleaser.yml
File metadata and controls
93 lines (80 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# .goreleaser.yml - Release automation for gourl
# https://goreleaser.com/customization/
version: 2
# Runs before the main build process
before:
hooks:
- go mod tidy
# Main build configuration
builds:
- id: gourl
main: ./cmd/gourl
binary: gourl
ldflags:
- -X main.Version={{.Version}}
goos:
- linux
- darwin
- windows
- freebsd
- openbsd
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
# Archive configuration
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_ {{- .Version }}_ {{- .Os }}_ {{- .Arch }}
format_overrides:
- goos: windows
format: zip
# Checksum generation
checksum:
name_template: "SHA256SUMS.txt"
algorithm: sha256
# Changelog configuration
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
- "^ci:"
- "^chore:"
- "^refactor:"
# Release configuration
release:
github:
owner: ram-ai-kumar
name: gourl
draft: false
prerelease: auto
mode: replace
# Homebrew casks configuration (replaces deprecated brews)
homebrew_casks:
- name: gourl
description: "Quick URL launcher for development environments"
homepage: "https://github.com/ram-ai-kumar/gourl"
license: "MIT"
# Repository to push the formula to
repository:
owner: ram-ai-kumar
name: homebrew-tap
# Directory to place the formula
directory: Formula
# Custom install command
install: |-
bin.install "gourl"
# Test command
test: |-
system "#{bin}/gourl --version"
# Source archive (optional, for package managers)
source:
enabled: true
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_source"