forked from gear4jCenter/github-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
67 lines (59 loc) · 1.56 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
# Make sure to check the documentation at http://goreleaser.com
project_name: ghp
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- 386
- amd64
- arm64
ignore:
- goos: darwin
goarch: 386
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- name: ghp
tap:
owner: gclm
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TOKEN }}"
url_template: "https://github.com/gclm/ghp/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: gclm
email: gclmit@163.com
homepage: "https://blog.gclmit.club"
description: "Github Proxy | Github 代理"
# Packages your package depends on.
dependencies:
- name: git
# So you can `brew test` your formula.
# Default is empty.
test: |
system "#{bin}/ghp curl https://raw.githubusercontent.com/gclm/homebrew-tap/note/README.md"
# Custom install script for brew.
# Default is 'bin.install "program"'.
install: |
bin.install "ghp"
# Install bash completion
output = Utils.safe_popen_read("#{bin}/ghp", "completion", "bash")
(bash_completion/"ghp").write output
# Install zsh completion
output = Utils.safe_popen_read("#{bin}/ghp", "completion", "zsh")
(zsh_completion/"_ghp").write output