This repository was archived by the owner on Nov 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
78 lines (71 loc) · 1.58 KB
/
.goreleaser.yaml
File metadata and controls
78 lines (71 loc) · 1.58 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
before:
hooks:
- go mod tidy
# Set GITHUB_TOKEN
# Build go binaries for specified OS/ARCH
builds:
- skip: false
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -X main.Version={{.Version}} -s -f
# Create/Update Github release
release:
disable: false
prerelease: auto
mode: keep-existing
extra_files:
- glob: ./install
# Update homebrew formula
brews:
- tap:
owner: intercloud
name: homebrew-tap
token: '{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}'
license: MPL
folder: Formula
# Uncomment for private repositoris
# download_strategy: GitHubPrivateRepositoryReleaseDownloadStrategy
# custom_require: lib/custom_download_strategy
description: 'Gobinsec'
homepage: 'https://github.com/intercloud/gobinsec'
test: |
system "#{bin}/gobinsec -version"
install: |
bin.install "gobinsec"
# Archive all attachements
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
- goos: windows
format: zip
replacements:
386: i386
amd64: x86_64
# Generate checksums file
checksum:
name_template: 'checksums.txt'
# Build in snapshot `goreleaser --snapshot``
snapshot:
name_template: '{{ incpatch .Version }}-next'
# Create a changelog
changelog:
use: github
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
- '^draft'
- '^wip'
# Send announce
announce:
slack:
enabled: true
channel: '#console-dev'
username: Github Release