-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yaml
118 lines (115 loc) · 3.08 KB
/
.goreleaser.yaml
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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
project_name: stencil
before:
hooks:
- go mod tidy
report_sizes: true
metadata:
mod_timestamp: "{{ .CommitTimestamp }}"
builds:
- main: ./cmd/{{ .ProjectName }}
flags:
- -trimpath
ldflags:
- -s
- -w
## <<Stencil::Block(ldflags)>>
- -X go.rgst.io/stencil/internal/version.version={{.Version}}
- -X go.rgst.io/stencil/internal/version.commit={{.Commit}}
- -X go.rgst.io/stencil/internal/version.date={{ .CommitDate }}
- -X go.rgst.io/stencil/internal/version.builtBy=goreleaser
- -X go.rgst.io/stencil/internal/version.treeState={{ if .IsGitDirty }}dirty{{ else }}clean{{ end }}
## <</Stencil::Block>>
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
## <<Stencil::Block(extraArch)>>
- "386"
- arm
- ppc64
## <</Stencil::Block>>
goos:
- linux
- darwin
## <<Stencil::Block(extraOS)>>
- windows
## <</Stencil::Block>>
ignore:
- goos: windows
goarch: arm
mod_timestamp: "{{ .CommitTimestamp }}"
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
use: git
release:
prerelease: "auto"
footer: |-
**Full Changelog**: https://github.com/rgst-io/stencil/compare/{{ .PreviousTag }}...{{ .Tag }}
## <<Stencil::Block(extraReleaseOpts)>>
# ---------- Packaging
notarize:
macos:
- enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
sign:
certificate: "{{.Env.MACOS_SIGN_P12}}"
password: "{{.Env.MACOS_SIGN_PASSWORD}}"
notarize:
issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}"
key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}"
key: "{{.Env.MACOS_NOTARY_KEY}}"
brews:
- commit_author:
name: GitHub Actions
email: 41898282+github-actions[bot]@users.noreply.github.com
homepage: https://stencil.rgst.io
license: Apache-2.0
description: "A modern living-template engine for evolving repositories"
dependencies:
- name: git
os: mac
conflicts:
- stencil
repository:
owner: rgst-io
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN}}"
nfpms:
- id: packages
homepage: https://stencil.rgst.io
description: |-
A modern living-template engine for evolving repositories.
maintainer: Jared Allard <[email protected]>
license: MIT
vendor: rgst
bindir: /usr/bin
section: utils
contents:
- src: ./LICENSE
dst: /usr/share/doc/stencil/copyright
file_info:
mode: 0644
formats:
- apk
- deb
- rpm
dependencies:
- git
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
publishers:
- name: fury.io
ids:
- packages
env:
- "FURY_PUSH_TOKEN={{ .Env.FURY_PUSH_TOKEN }}"
cmd: ./.github/scripts/fury-upload.sh {{ .ArtifactName }}
disable: '{{ if (isEnvSet "FURY_PUSH_TOKEN") }}false{{ else }}true{{ end }}'
## <</Stencil::Block>>