forked from gemfury/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
106 lines (87 loc) · 1.89 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
project_name: fury
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- binary: fury
main: ./cmd/fury
ldflags: -s -w -X main.Version={{.Version}}
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 7
ignore:
- goos: darwin
goarch: 386
archives:
- format: tar.gz
wrap_in_directory: false
format_overrides:
- goos: windows
format: zip
replacements:
amd64: 64bit
386: 32bit
arm: ARM
arm64: ARM64
darwin: macOS
linux: Linux
windows: Windows
checksum:
name_template: 'checksums.txt'
changelog:
skip: true
release:
draft: true
nfpms:
- id: nfpm-default
package_name: fury-cli
vendor: Gemfury.com
homepage: https://fury.co
maintainer: Gemfury Team <[email protected]>
description: Gemfury CLI
license: Proprietary
formats:
- deb
bindir: /usr/bin
publishers:
- name: gemfury-repo
dir: "{{ dir .ArtifactPath }}"
cmd: curl -s -F p1=@{{ .ArtifactName }} https://{{ .Env.FURY_PUSH_TOKEN }}@push.fury.io/cli/
ids:
- nfpm-default
brews:
-
# Name template of the recipe
name: fury-cli
# GitHub repository to receive formula
tap:
owner: gemfury
name: homebrew-tap
token: "{{ .Env.BREW_TAP_GITHUB_TOKEN }}"
# Git author used to commit to the repository.
commit_author:
email: [email protected]
name: goreleaser
# Folder inside the repository to put the formula.
folder: Formula
# App's homepage.
homepage: "https://gemfury.com/"
# App's description.
description: "CLI For Gemfury Package Repository"
# Conflicts with Ruby CLI
conflicts:
- gemfury
# Run to `brew test` the formula.
test: |
system "#{bin}/fury --version"