-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
116 lines (101 loc) · 3.09 KB
/
Copy path.goreleaser.yaml
File metadata and controls
116 lines (101 loc) · 3.09 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
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
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
project_name: neo4j-cli
before:
hooks:
- go mod tidy
builds:
- main: ./neo4j-cli
id: neo4j-cli
binary: neo4j-cli
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -X "github.com/neo4j/cli/neo4j-cli/app.Version={{.Env.GORELEASER_CURRENT_TAG}}"
archives:
- id: neo4j-cli-archive
ids:
- neo4j-cli
formats:
- tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .Binary }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
formats:
- zip
release:
prerelease: false
extra_files:
- glob: CHANGELOG.md
brews:
- name: neo4j-cli
ids:
- neo4j-cli-archive
repository:
owner: neo4j-labs
name: homebrew-tap
branch: main
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
directory: Formula
commit_author:
name: neo4j-cli-bot
email: noreply@neo4j.com
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/neo4j/cli"
description: "Command-line interface for Neo4j"
license: "Apache-2.0"
skip_upload: auto
install: |
bin.install "neo4j-cli"
test: |
assert_match version.to_s, shell_output("#{bin}/neo4j-cli --version")
post_install: |
return unless ENV["NEO4J_CLI_AUTO_INSTALL_SKILL"] == "1"
system "#{bin}/neo4j-cli", "skill", "install", "--rw"
true
notarize:
macos:
- # Whether this configuration is enabled or not.
#
# Default: false.
# Templates: allowed.
enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
# IDs to use to filter the built binaries.
#
# Default: the project name.
ids:
- neo4j-cli
sign:
# The .p12 certificate file path or its base64'd contents.
certificate: "{{.Env.MACOS_SIGN_P12}}"
# The password to be used to open the certificate.
password: "{{.Env.MACOS_SIGN_PASSWORD}}"
# Then, we notarize the binaries.
notarize:
# The issuer ID.
# Its the UUID you see when creating the App Store Connect key.
issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}"
# Key ID.
# You can see it in the list of App Store Connect Keys.
# It will also be in the ApiKey filename.
key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}"
# The .p8 key file path or its base64'd contents.
key: "{{.Env.MACOS_NOTARY_KEY}}"