Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Commit fabc9e0

Browse files
author
Dax Raad
committed
sync
1 parent cded7ee commit fabc9e0

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

.goreleaser.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
version: 2
2+
project_name: sst
3+
before:
4+
hooks:
5+
- go mod tidy
6+
- go test ./cmd/... ./pkg/...
7+
builds:
8+
- env:
9+
- CGO_ENABLED=0
10+
goos:
11+
- linux
12+
- darwin
13+
main: ./cmd/sst
14+
15+
archives:
16+
- format: tar.gz
17+
# this name template makes the OS and Arch compatible with the results of uname.
18+
name_template: >-
19+
sst-
20+
{{- if eq .Os "darwin" }}mac-
21+
{{- else if eq .Os "windows" }}windows-
22+
{{- else if eq .Os "linux" }}linux-{{end}}
23+
{{- if eq .Arch "amd64" }}x86_64
24+
{{- else if eq .Arch "#86" }}i386
25+
{{- else }}{{ .Arch }}{{ end }}
26+
{{- if .Arm }}v{{ .Arm }}{{ end }}
27+
# use zip for windows archives
28+
format_overrides:
29+
- goos: windows
30+
format: zip
31+
checksum:
32+
name_template: "checksums.txt"
33+
snapshot:
34+
name_template: "0.0.0-{{ .Timestamp }}"
35+
aurs:
36+
- homepage: "https://github.com/sst/sst"
37+
description: "Deploy anything"
38+
private_key: "{{ .Env.AUR_KEY }}"
39+
git_url: "ssh://aur@aur.archlinux.org/sst-bin.git"
40+
license: "MIT"
41+
package: |-
42+
install -Dm755 ./sst "${pkgdir}/usr/bin/sst"
43+
brews:
44+
- repository:
45+
owner: sst
46+
name: homebrew-tap
47+
nfpms:
48+
- maintainer: sst
49+
description: the sst cli
50+
formats:
51+
- deb
52+
- rpm
53+
file_name_template: >-
54+
{{ .ProjectName }}-
55+
{{- if eq .Os "darwin" }}mac
56+
{{- else }}{{ .Os }}{{ end }}-{{ .Arch }}
57+
58+
# scoop:
59+
# bucket:
60+
# owner: sst
61+
# name: scoop-bucket
62+
# homepage: "https://github.com/sst/ion"
63+
# description: "sst cli"
64+
# license: Apache 2.0
65+
66+
changelog:
67+
sort: asc
68+
filters:
69+
exclude:
70+
- "^docs:"
71+
- "^doc:"
72+
- "^test:"
73+
- "^ci:"
74+
- "^ignore:"
75+
- "^example:"
76+
- "^wip:"

0 commit comments

Comments
 (0)