-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
68 lines (60 loc) · 1.7 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
before:
hooks:
- go mod tidy -diff
- go mod download
- go mod verify
builds:
- main: ./cmd/vipdatasync
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{ .Version }} -X main.fullCommit={{ .FullCommit }} -X main.commitDate={{ .CommitDate }} -X main.gitTreeState={{ .IsGitDirty }} -X main.builtBy=goreleaser
gomod:
proxy: true
env:
- GOPROXY=https://proxy.golang.org
- GOSUMDB=sum.golang.org
checksum:
disable: true
sboms:
- artifacts: archive
changelog:
disable: true
brews:
- name: vipdatasync
directory: Formula
homepage: "https://github.com/typisttech/vipdatasync"
description: "CLI utility for WordPress VIP data sync management"
license: MIT
skip_upload: auto
custom_block: |
rubocop:disable FormulaAudit/ComponentsOrder,Style/DisableCopsWithinSourceCodeDirective
head do
url "https://github.com/typisttech/vipdatasync.git", branch: "main"
depends_on "go" => :build
end
rubocop:enable FormulaAudit/ComponentsOrder,Style/DisableCopsWithinSourceCodeDirective
test: |
system "#{bin}/vipdatasync", "--version"
install: |
if build.head?
system "go", "build", "-o", "dist/vipdatasync", "./cmd/vipdatasync"
bin.install "dist/vipdatasync"
else
bin.install "vipdatasync"
end
repository:
owner: typisttech
name: homebrew-vipdatasync
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
branch: goreleaser
pull_request:
enabled: true