-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
124 lines (112 loc) · 2.77 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
113
114
115
116
117
118
119
120
121
122
123
124
project_name: qvm
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 install dpastoor/tap/qvm
```
upgrade:
```
brew upgrade qvm
```
### Linux
```
sudo wget https://github.com/dpastoor/qvm/releases/download/{{ .Tag }}/qvm_Linux_x86_64.tar.gz -O /tmp/qvm.tar.gz
sudo tar xzf /tmp/qvm.tar.gz qvm
sudo mv qvm /usr/local/bin/qvm
sudo chmod +x /usr/local/bin/qvm
```
### Linux User
Assumes `~/bin` is available in your PATH
```
wget https://github.com/dpastoor/qvm/releases/download/{{ .Tag }}/qvm_Linux_x86_64.tar.gz -O /tmp/qvm.tar.gz
tar xzf /tmp/qvm.tar.gz qvm
mv qvm ~/bin/qvm
chmod +x ~/bin/qvm
```
before:
hooks:
- go mod tidy
- ./scripts/completions.sh
- ./scripts/manpages.sh
builds:
-
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
goarm:
- "7"
universal_binaries:
- replace: true
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}/qvm -v"
install: |-
bin.install "qvm"
bash_completion.install "completions/qvm.bash" => "qvm"
zsh_completion.install "completions/qvm.zsh" => "_qvm"
fish_completion.install "completions/qvm.fish"
man1.install "manpages/qvm.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/qvm
description: quarto version manager
maintainer: Devin Pastoor <devin.pastoor@gmail.com>
license: MIT
contents:
- src: ./completions/qvm.bash
dst: /etc/bash_completion.d/qvm
- src: ./completions/qvm.fish
dst: /usr/share/fish/completions/qvm.fish
- src: ./completions/qvm.zsh
dst: /usr/local/share/zsh/site-functions/_qvm
- src: ./manpages/qvm.1.gz
dst: /usr/share/man/man1/qvm.1.gz
formats:
- apk
- deb
- rpm
snapshot:
name_template: '{{ incpatch .Version }}-next'