-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
77 lines (69 loc) · 1.77 KB
/
Copy path.goreleaser.yaml
File metadata and controls
77 lines (69 loc) · 1.77 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
project_name: dev-cleaner
before:
hooks:
- go mod tidy
# Create dummy frontend/dist for main.go embed directive
- mkdir -p frontend/dist && echo "CLI build - frontend not included" > frontend/dist/README.txt
# Test only CLI packages (exclude root main.go which requires frontend/dist)
- go test ./cmd/... ./internal/... ./pkg/...
builds:
- id: dev-cleaner
main: ./cmd/dev-cleaner/main.go
binary: dev-cleaner
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X github.com/thanhdevapp/dev-cleaner/cmd/root.Version={{.Version}}
archives:
- id: default
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- README.md
- LICENSE*
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- Merge pull request
- Merge branch
brews:
- name: dev-cleaner
repository:
owner: thanhdevapp
name: homebrew-tools
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
homepage: "https://github.com/thanhdevapp/mac-dev-cleaner-cli"
description: "Clean development artifacts on macOS - Xcode, Gradle, node_modules"
license: "MIT"
install: |
bin.install "dev-cleaner"
test: |
system "#{bin}/dev-cleaner", "--version"
release:
github:
owner: thanhdevapp
name: mac-dev-cleaner-cli
draft: false
prerelease: auto
name_template: "v{{.Version}}"
# Announce to social (optional)
# announce:
# twitter:
# enabled: false