-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
86 lines (78 loc) · 2.7 KB
/
Copy path.goreleaser.yaml
File metadata and controls
86 lines (78 loc) · 2.7 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
79
80
81
82
83
84
85
86
version: 2
project_name: spoo
# Generate the man page once before building; fang's `man` command
# emits roff to stdout, which we gzip into the conventional location.
before:
hooks:
- sh -c "mkdir -p manpages && go run ./cmd/spoo man | gzip -9 -c > manpages/spoo.1.gz"
# generate shell completion scripts once; shared by the cask + nfpms
- sh -c "mkdir -p completions && for s in bash zsh fish; do go run ./cmd/spoo completion $s > completions/spoo.$s; done"
builds:
- id: spoo
main: ./cmd/spoo
binary: spoo
env: [CGO_ENABLED=0]
goos: [linux, darwin, windows]
goarch: [amd64, arm64]
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X github.com/spoo-me/spoo-cli/internal/cmd.Version={{.Version}}
archives:
- formats: [tar.gz]
# the cask installs completions from inside the archive, so they must
# be bundled; setting `files` overrides the defaults, hence the globs
files:
- LICENSE*
- README*
- completions/*
format_overrides:
- goos: windows
formats: [zip]
nfpms:
- formats: [deb, rpm, apk]
description: The official command-line client for spoo.me
homepage: https://spoo.me
license: Apache-2.0
maintainer: spoo.me <support@spoo.me>
contents:
- src: manpages/spoo.1.gz
dst: /usr/share/man/man1/spoo.1.gz
- src: completions/spoo.bash
dst: /usr/share/bash-completion/completions/spoo
- src: completions/spoo.zsh
dst: /usr/share/zsh/site-functions/_spoo
- src: completions/spoo.fish
dst: /usr/share/fish/vendor_completions.d/spoo.fish
checksum:
name_template: checksums.txt
changelog:
use: github-native
# Publishes the cask to spoo-me/homebrew-tap; needs the TAP_GITHUB_TOKEN
# secret (a PAT with write access to that repo) in the release workflow.
homebrew_casks:
- repository:
owner: spoo-me
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
commit_author:
name: zingzy
email: admin@spoo.me
homepage: https://spoo.me
description: The official command-line client for spoo.me
# install the pre-generated scripts so `brew install spoo-me/tap/spoo`
# wires up bash/zsh/fish completion with no manual steps
completions:
bash: completions/spoo.bash
zsh: completions/spoo.zsh
fish: completions/spoo.fish
# Publishes the manifest to spoo-me/scoop-bucket (same TAP_GITHUB_TOKEN).
scoops:
- repository:
owner: spoo-me
name: scoop-bucket
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
commit_author:
name: zingzy
email: admin@spoo.me
homepage: https://spoo.me
description: The official command-line client for spoo.me
license: Apache-2.0