-
Notifications
You must be signed in to change notification settings - Fork 27
/
.goreleaser.yml
133 lines (123 loc) · 4.07 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
125
126
127
128
129
130
131
132
133
project_name: algolia
release:
prerelease: auto
name_template: "Algolia CLI {{.Version}}"
before:
hooks:
- go mod tidy
- go generate ./...
- ./scripts/completions.sh
builds:
- <<: &build_defaults
binary: algolia
main: ./cmd/algolia/main.go
ldflags:
- -s -w -X github.com/algolia/cli/pkg/version.Version={{.Version}}
id: macos
goos: [darwin]
goarch: [amd64, arm64]
- <<: *build_defaults
id: linux
goos: [linux]
goarch: [386, arm, amd64, arm64]
env:
- CGO_ENABLED=0
- <<: *build_defaults
id: windows
goos: [windows]
goarch: [386, amd64, arm64]
archives:
- id: nix
builds: [macos, linux]
<<: &archive_defaults
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: true
replacements:
darwin: macOS
format: tar.gz
files:
- LICENSE
- completions/*
- id: windows
builds: [windows]
<<: *archive_defaults
wrap_in_directory: false
format: zip
files:
- LICENSE
nfpms:
- license: MIT
maintainer: Algolia
homepage: https://www.algolia.com/
bindir: /usr/bin
dependencies:
- git
description: Algolia CLI utility
formats:
- deb
- rpm
brews:
- tap:
owner: algolia
name: homebrew-algolia-cli
commit_author:
name: algolia-ci
email: [email protected]
homepage: https://www.algolia.com
description: Algolia CLI utility
install: |
bin.install "algolia"
bash_completion.install "completions/algolia.bash" => "algolia"
zsh_completion.install "completions/algolia.zsh" => "_algolia"
fish_completion.install "completions/algolia.fish"
caveats: "❤ Thanks for installing the Algolia CLI!"
# dockers:
# - goos: linux
# goarch: amd64
# ids:
# - algolia
# - algolia-linux
# <<: &docker_defaults
# image_templates:
# - "algolia/cli:latest"
# - "algolia/cli:{{ .Tag }}"
# build_flag_templates:
# - "--pull"
# - "--label=org.opencontainers.image.created={{.Date}}"
# - "--label=org.opencontainers.image.name={{.ProjectName}}"
# - "--label=org.opencontainers.image.revision={{.FullCommit}}"
# - "--label=org.opencontainers.image.version={{.Version}}"
# - "--label=repository=https://github.com/algolia/cli"
# - "--label=homepage=https://algolia.com"
# - goos: linux
# goarch: arm64
# ids:
# - algolia
# - algolia-linux-arm
# <<: *docker_defaults
chocolateys:
-
name: algolia
title: Algolia CLI
authors: Algolia
ids:
- windows
project_url: https://algolia.com/doc/tools/cli
url_template: "https://github.com/algolia/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
icon_url: 'https://cdn-assets-eu.frontify.com/s3/frontify-enterprise-files-eu/eyJwYXRoIjoiYWxnb2xpYS1icmFuZFwvZmlsZVwvRGVRczRpYzJpcWRwcHNQaTQ0aVoucG5nIn0:algolia-brand:iMztVbeCSM-SuJ011FE1EigUhc-yZZ5RPPpmq6DP8T0?width=300'
copyright: 2023 Algolia
license_url: https://github.com/algolia/cli/blob/main/LICENSE
require_license_acceptance: false
project_source_url: https://github.com/algolia/cli
docs_url: https://algolia.com/doc/tools/cli
bug_tracker_url: https://github.com/algolia/cli/issues
tags: "algolia search cli automation interface command-line tool devtool"
summary: Algolia's official CLI devtool
description: |
{{ .ProjectName }} chocolatey installer package.
A command line interface to enable Algolia developers to interact with and configure their Algolia applications straight from a command line or terminal window. Automate common workloads, create snapshots, revert to backups, or quickly modify applications as needed! This is a lightweight tool, providing a text-only interface, that is easy to install and use!
release_notes: "https://github.com/algolia/cli/releases/tag/v{{ .Version }}"
api_key: '{{ .Env.CHOCOLATEY_API_KEY }}'
source_repo: "https://push.chocolatey.org/"
skip_publish: false
goamd64: v1