-
Notifications
You must be signed in to change notification settings - Fork 12
/
.goreleaser.yml
75 lines (71 loc) · 2.03 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
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# - ./scripts/install-kcl-lsp-all.sh
# .goreleaser.yml
builds:
- id: default
main: ./cmd/kcl/main.go
binary: kcl
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
flags:
- -tags=rpc
ldflags:
- "-X kcl-lang.io/cli/pkg/version.version={{.Version}}"
archives:
- id: default
builds:
- default
name_template: "kcl-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
# Put kcl-language-server binaries into add to the kcl archive.
# files:
# - ./bin/kcl-lsp-v{{ .Version }}-{{ .Os }}-{{ .Arch }}/*
brews:
- tap:
owner: kcl-lang
name: homebrew-tap
name: kcl
url_template: "https://github.com/kcl-lang/cli/releases/download/{{ .Tag }}/kcl-v{{ .Version }}-{{ .Os }}-{{ .Arch }}.tar.gz"
download_strategy: CurlDownloadStrategy
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: GoReleaser Bot
email: goreleaser@carlosbecker.com
folder: HomebrewFormula
homepage: "https://github.com/kcl-lang/kcl"
description: "KCL Command Line Interface"
dependencies:
- name: "kcl-lsp"
license: "Apache License"
skip_upload: false
test: |
system "#{bin}/kcl version"
scoop:
name: kcl
url_template: "https://github.com/kcl-lang/cli/releases/download/{{ .Tag }}/kcl-v{{ .Version }}-{{ .Os }}-{{ .Arch }}.zip"
bucket:
owner: kcl-lang
name: scoop-bucket
branch: main
token: "{{ .Env.GITHUB_TOKEN }}"
folder: Scoops
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
commit_msg_template: "Scoop update for kcl version {{ .Tag }}"
homepage: "http://github.com/kcl-lang/kcl"
description: "KCL Command Line Interface"
license: Apache License 2.0