-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
112 lines (104 loc) · 2.49 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
107
108
109
110
111
112
project_name: fab
release:
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
# Default is false.
prerelease: auto
footer: |
## Installation Instructions
### Mac
first time:
```
brew tap dpastoor/tap
brew install fab
```
upgrade:
```
brew upgrade fab
```
### Linux
```
sudo wget https://github.com/dpastoor/fab/releases/download/{{ .Tag }}/fab_Linux_amd64.tar.gz -O /tmp/fab.tar.gz
sudo tar xzf /tmp/fab.tar.gz fab
sudo mv fab /usr/local/bin/fab
sudo chmod +x /usr/local/bin/fab
```
before:
hooks:
- go mod tidy
- ./scripts/completions.sh
- ./scripts/manpages.sh
builds:
-
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
- arm
goarm:
- "7"
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
- completions/*
- manpages/*
brews:
# Repository to push the tap to.
-
tap:
owner: dpastoor
name: homebrew-tap
folder: Formula
goarm: "7"
test: |
system "#{bin}/fab -v"
install: |-
bin.install "fab"
bash_completion.install "completions/fab.bash" => "fab"
zsh_completion.install "completions/fab.zsh" => "_fab"
fish_completion.install "completions/fab.fish"
man1.install "manpages/fab.1.gz"
publishers:
- name: fury.io
ids:
- packages
env:
- 'FURY_TOKEN={{ .Env.FURY_TOKEN }}'
cmd: ./scripts/fury-upload.sh {{ .ArtifactName }}
nfpms:
- file_name_template: '{{ .ConventionalFileName }}'
id: packages
homepage: https://github.com/dpastoor/fab
description: Fabricate projects, fabulously
maintainer: Devin Pastoor <devin.pastoor@gmail.com>
license: MIT
contents:
- src: ./completions/fab.bash
dst: /etc/bash_completion.d/fab
- src: ./completions/fab.fish
dst: /usr/share/fish/completions/fab.fish
- src: ./completions/fab.zsh
dst: /usr/local/share/zsh/site-functions/_fab
- src: ./manpages/fab.1.gz
dst: /usr/share/man/man1/fab.1.gz
formats:
- apk
- deb
- rpm
snapshot:
name_template: '{{ incpatch .Version }}-next'