-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.goreleaser.yml
More file actions
109 lines (97 loc) · 2.5 KB
/
.goreleaser.yml
File metadata and controls
109 lines (97 loc) · 2.5 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
version: 2
before:
hooks:
- go work sync
builds:
- id: construct
main: ./frontend/cli
binary: construct
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X github.com/furisto/construct/frontend/cli/cmd.Version={{ .Version }}
- -X github.com/furisto/construct/frontend/cli/cmd.GitCommit={{ .Commit }}
- -X github.com/furisto/construct/frontend/cli/cmd.BuildDate={{ .Date }}
- -X github.com/furisto/construct/backend/analytics.PostHogAPIKey={{ .Env.POSTHOG_API_KEY }}
hooks:
post:
- sh -c 'sha256sum {{ .Path }} | cut -d" " -f1 > {{ .Os }}_{{ .Arch }}_checksum.txt'
archives:
- id: construct
builds:
- construct
name_template: "{{ .Os }}_{{ .Arch }}"
files:
- README.md
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
release:
draft: true
replace_existing_draft: true
target_commitish: "{{ .Commit }}"
extra_files:
- glob: "*_checksum.txt"
header: |
## What's Changed
This release includes the following changes:
brews:
- name: construct
repository:
owner: furisto
name: homebrew-tap
branch: main
token: "{{ .Env.GITHUB_TOKEN }}"
commit_author:
name: Thomas Schubart
email: 24721048+Furisto@users.noreply.github.com
homepage: https://github.com/furisto/construct
description: "Your AI-powered development assistant"
license: Apache-2.0
install: |
bin.install "construct"
test: |
system "#{bin}/construct", "version"
blobs:
- provider: s3
region: us-east-1
bucket: us-construct-releases
directory: versions/{{ .Version }}
extra_files:
- glob: "*_checksum.txt"
- provider: s3
region: eu-central-1
bucket: eu-construct-releases
directory: versions/{{ .Version }}
extra_files:
- glob: "*_checksum.txt"
notarize:
macos:
- enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
sign:
certificate: "{{.Env.MACOS_SIGN_P12}}"
password: "{{.Env.MACOS_SIGN_PASSWORD}}"
entitlements: ./entitlements.xml
notarize:
issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}"
key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}"
key: "{{.Env.MACOS_NOTARY_KEY}}"
wait: true
timeout: 20m
# Uncomment if you want to skip builds for missing git tags during development
# snapshot:
# skip_publish: true