-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
130 lines (118 loc) · 2.73 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
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
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
---
version: 2
before:
hooks:
- task setup generate
- ./scripts/completions.sh
- ./scripts/manpages.sh
- ./scripts/release_notes.sh {{ .RawVersion }}
builds:
- env:
- CGO_ENABLED=0
flags:
- -trimpath
goos:
- darwin
- linux
- windows
goarch:
- "386"
- amd64
- arm64
goarm:
- "7"
ignore:
- goos: darwin
goarch: "386"
ldflags:
- -s -w -X {{.ModulePath}}/cmd/version/version.version={{.Version}}
mod_timestamp: "{{ .CommitTimestamp }}"
upx:
- goos: [linux]
enabled: true
compress: best
git:
ignore_tags:
- "{{ if not .IsNightly }}nightly{{ end }}"
archives:
- format: tgz
name_template: >-
{{ .ProjectName }}-
{{- .Version }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch}}{{ end }}
{{- if .Arm }}_v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
files:
- info:
owner: root
group: root
mode: 0644
mtime: "{{ .CommitDate }}"
- src: CHANGELOG*
- src: README*
- src: LICENSE*
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Version }}-snapshot"
changelog:
disable: true
release:
github:
owner: asphaltbuffet
name: elf
prerelease: auto
nightly:
publish_release: true
keep_single_release: true
name_template: "{{ incminor .Version }}-nightly"
announce:
skip: true
nfpms:
- file_name_template: "{{ .ConventionalFileName }}"
id: packages
homepage: https://github.com/asphaltbuffet/elf
description: |-
A helper for programming exercises.
Elf takes care of the boring parts of programming exercises so you can
focus on the fun parts.
maintainer: Ben Lechlitner <[email protected]>
license: MIT
vendor: asphaltbuffet
bindir: /usr/bin
section: utils
contents:
- src: ./completions/elf.bash
dst: /usr/share/bash-completion/completions/elf
file_info:
mode: 0644
- src: ./completions/elf.fish
dst: /usr/share/fish/vendor_completions.d/elf.fish
file_info:
mode: 0644
- src: ./completions/elf.zsh
dst: /usr/share/zsh/vendor-completions/_elf
file_info:
mode: 0644
- src: ./manpages/
dst: /usr/share/man/man1/
file_info:
mode: 0644
- src: ./LICENSE
dst: /usr/share/doc/elf/copyright
file_info:
mode: 0644
formats:
- apk
- deb
- rpm
dependencies:
- golang
recommends:
- python3