-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
100 lines (89 loc) · 2.67 KB
/
Copy path.goreleaser.yml
File metadata and controls
100 lines (89 loc) · 2.67 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
version: 2
project_name: modelslab
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/modelslab
binary: modelslab
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.Date}}
archives:
- name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
formats:
- tar.gz
format_overrides:
- goos: windows
formats:
- zip
checksum:
name_template: "checksums.txt"
release:
# Re-running a release must be safe.
#
# `mode` governs the release NOTES only — it does nothing about artifacts, and
# the v0.2.0 retry died proving it: every upload came back
# `422 already_exists` against the assets the first, half-failed run had
# already attached. replace_existing_artifacts is the half that actually
# overwrites them.
mode: replace
replace_existing_artifacts: true
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^ci:"
- "Merge pull request"
homebrew_casks:
# skip_upload is driven by the workflow's tap-credential probe.
#
# goreleaser treats a failed cask push as fatal, and the tap PATs expired
# seven months after they were minted. On v0.2.0 that 401 took the ENTIRE
# release with it: npm, PyPI and every step after goreleaser never ran, over
# a credential that only affects two optional install channels. A dead tap
# token now degrades the release instead of ending it.
#
# envOrDefault, not .Env: an unset secret must not fail config loading.
- skip_upload: '{{ envOrDefault "SKIP_HOMEBREW" "false" }}'
repository:
owner: ModelsLab
name: homebrew-tap
token: '{{ envOrDefault "HOMEBREW_TAP_GITHUB_TOKEN" "unset" }}'
homepage: https://modelslab.sh
description: "ModelsLab CLI — AI generation and account management from the terminal"
scoops:
# See the note on homebrew_casks above.
- skip_upload: '{{ envOrDefault "SKIP_SCOOP" "false" }}'
repository:
owner: ModelsLab
name: scoop-bucket
token: '{{ envOrDefault "SCOOP_BUCKET_GITHUB_TOKEN" "unset" }}'
homepage: https://modelslab.sh
description: "ModelsLab CLI — AI generation and account management from the terminal"
license: MIT
nfpms:
- formats:
- deb
- rpm
homepage: https://modelslab.sh
description: "ModelsLab CLI — AI generation and account management from the terminal"
maintainer: "ModelsLab <support@modelslab.com>"
license: MIT
bindir: /usr/bin