forked from datarobot-oss/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgoreleaser.yaml
More file actions
117 lines (99 loc) · 2.97 KB
/
goreleaser.yaml
File metadata and controls
117 lines (99 loc) · 2.97 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
117
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
project_name: "dr"
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- <<: &build_defaults
env:
- CGO_ENABLED=0
binary: "dr"
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- >
-s -w
-X "github.com/datarobot/cli/internal/version.Version={{ .Tag }}"
-X "github.com/datarobot/cli/internal/version.GitCommit={{ .ShortCommit }}"
-X "github.com/datarobot/cli/internal/version.BuildDate={{ .CommitDate }}"
goarch:
- amd64
- arm64
- riscv64
id: linux
goos: [linux]
- <<: *build_defaults
id: darwin
goos: [darwin]
- <<: *build_defaults
id: windows
goos: [windows]
archives:
- formats: [tar.gz]
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_v{{ .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]
files:
- LICENSE.txt
- CHANGELOG.md
checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
extra_files:
- glob: ./**/*.rb
footer: |
**Full Changelog**: https://github.com/datarobot-oss/cli/compare/{{ .PreviousTag }}...{{ .Tag }}
prerelease: auto
git:
tag_sort: -version:creatordate
homebrew_casks:
- name: dr-cli
hooks:
post:
# This is temporary while we wait for notarization to be available with help from IT
install: |
if OS.mac?
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/dr"]
end
binaries: [ dr ]
url:
template: "https://github.com/datarobot-oss/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
verified: "github.com/datarobot-oss/cli/"
homepage: "https://www.datarobot.com"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
directory: Casks
description: "DataRobot command-line interface."
skip_upload: "{{ if .Prerelease }}true{{ else }}false{{ end }}"
repository:
owner: datarobot-oss
name: homebrew-taps
branch: main
pull_request:
enabled: true
draft: false
git:
url: 'git@github.com:datarobot-oss/homebrew-taps.git'
private_key: '{{ .Env.HOMEBREW_TAPS_SSH_KEY }}'
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
notarize:
macos:
- enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
ids: [darwin]
sign:
certificate: "{{ .Env.MACOS_SIGN_P12 }}"
password: "{{ .Env.MACOS_SIGN_PASSWORD }}"
notarize: