-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.goreleaser.yml
91 lines (90 loc) · 2.18 KB
/
.goreleaser.yml
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
# See documentation
#
# http://goreleaser.com
#
# Usage:
#
# goreleaser release --clean --skip=publish [--snapshot]
#
version: 2
project_name: run
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
# - go generate ./...
builds:
- env:
- CGO_ENABLED=0
binary: run
ldflags:
- -s -w -X "main.Version={{.Version}}" -X "main.BuildDate={{.Date}}" -X "main.GitSummary={{.Summary}}" -X "main.BuildTool=goreleaser"
goos:
- darwin
- linux
goarch:
- amd64
- arm64
# ignore:
# - goos: linux
# goarch: arm64
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Version }}"
changelog:
sort: desc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
-
maintainer: TekWizely <[email protected]>
homepage: https://github.com/TekWizely/run
description: "Task runner that helps you easily manage and invoke small scripts and wrappers."
license: MIT
formats:
- deb
- rpm
- apk
aurs:
-
skip_upload: "true"
maintainers:
- TekWizely <[email protected]>
homepage: https://github.com/TekWizely/run
description: "Task runner that helps you easily manage and invoke small scripts and wrappers."
license: MIT
brews:
-
skip_upload: "true"
# tap:
# owner: Tekwizely
# name: homebrew-tap
# folder: Formula
url_template: "https://github.com/TekWizely/run/archive/{{ .Version }}.tar.gz"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
license: MIT
homepage: https://github.com/TekWizely/run
description: "Task runner that helps you easily manage and invoke small scripts and wrappers."
dependencies:
- name: go
type: build
# install: |
# system "go", "build", "-trimpath", "-ldflags", "-w -s -X \"main.BuildTool=brew via tekwizely/tap/run\"", "-o", bin/name
test: |
text = "Hello Homebrew!"
task = "hello"
(testpath/"Runfile").write <<~EOS
#{task}:
echo #{text}
EOS
assert_equal text, shell_output("#{bin}/#{name} #{task}").chomp
release:
disable: true
draft: true
github:
owner: TekWizely
name: run