Repository navigation
Expand file tree
/
Copy path.goreleaser.release.yml
More file actions
160 lines (146 loc) · 3.88 KB
/
Copy path.goreleaser.release.yml
File metadata and controls
160 lines (146 loc) · 3.88 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
version: 2
before:
hooks:
- go mod tidy
builds:
- id: qui
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w
- -X github.com/autobrr/qui/internal/buildinfo.Version={{.Version}}
- -X github.com/autobrr/qui/internal/buildinfo.Date={{.Date}}
- -X github.com/autobrr/qui/internal/buildinfo.Commit={{.Commit}}
goos:
- linux
- windows
- darwin
- freebsd
goarch:
- amd64
- arm
- arm64
goarm:
- 6
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: darwin
goarch: arm
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
main: ./cmd/qui
binary: qui
# qui-tray.exe: the GUI-subsystem build that serves with the Tray. See
# docs/adr/0012-the-tray-lives-in-the-served-child-of-a-second-windows-binary.md.
- id: qui-tray
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w -H windowsgui
- -X github.com/autobrr/qui/internal/buildinfo.Version={{.Version}}
- -X github.com/autobrr/qui/internal/buildinfo.Date={{.Date}}
- -X github.com/autobrr/qui/internal/buildinfo.Commit={{.Commit}}
- -X github.com/autobrr/qui/internal/buildinfo.Tray=true
goos:
- windows
goarch:
- amd64
main: ./cmd/qui
binary: qui-tray
archives:
- id: qui-archive
ids:
- qui
- qui-tray
# Only the Windows zip holds qui-tray.exe. A Self-update takes both exes
# from that one zip, so the archives stay combined.
allow_different_binary_count: true
files:
- LICENSE
- README.md
# The release workflow writes this file with scripts/notices.
- THIRD_PARTY_NOTICES
format_overrides:
- goos: windows
formats: ['zip']
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
msi:
- id: qui-msi
ids:
- qui
- qui-tray
wxs: ./distrib/windows/qui.wxs
extra_files:
- internal/tray/qui.ico
- THIRD_PARTY_NOTICES
name: qui_{{ .Version }}_windows_x86_64
release:
prerelease: auto
# The maintainer adds the Highlights and then publishes the draft.
draft: true
# A re-run of a failed tag build replaces the draft that it left.
replace_existing_draft: true
# Stop before the build when the tag is already an immutable release.
preflight:
fail_on_error: true
extra_files:
- glob: web-dist.tar.gz
footer: |
**Full Changelog**: https://github.com/{{ .Env.GITHUB_REPOSITORY_OWNER }}/qui/compare/{{ .PreviousTag }}...{{ .Tag }}
## Docker images
- `docker pull ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/qui:{{ .Tag }}`
- `docker pull ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/qui:latest`
## What to do next?
- Join our [Discord server](https://discord.autobrr.com/qui)
Thank you for using qui!
checksum:
name_template: "checksums.txt"
signs:
- artifacts: checksum
cmd: openssl
signature: "${artifact}.sig"
args:
- "dgst"
- "-sha256"
- "-sign"
- "{{ .Env.RELEASE_SIGNING_KEY_FILE }}"
- "-out"
- "${signature}"
- "${artifact}"
changelog:
sort: asc
use: github
format: "{{ .Message }}{{ if .Logins }} ({{ .Logins | englishJoin }}){{ end }}"
filters:
exclude:
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
groups:
- title: "Breaking Changes"
regexp: "^\\w+(\\([^)]*\\))?!:.*$"
order: 0
- title: "New Features"
regexp: "^.*feat[(\\w)]*:+.*$"
order: 10
- title: "Bug Fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
order: 20
- title: "Other Changes"
regexp: "^.*(chore|docs|style|refactor|test|perf|security|build|ci)[(\\w)]*:+.*$"
order: 30