-
Notifications
You must be signed in to change notification settings - Fork 68
/
.goreleaser.yml
88 lines (88 loc) · 2.4 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
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/spr
id: spr
binary: git-spr
goos:
- linux
- windows
- darwin
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=gorelease
- main: ./cmd/amend
id: amend
binary: git-amend
goos:
- linux
- windows
- darwin
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=gorelease
- main: ./cmd/reword
id: reword
binary: spr_reword_helper
goos:
- linux
- windows
- darwin
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=gorelease
archives:
- name_template: '{{ .ProjectName }}_{{- if eq .Os "Darwin" }}macos_{{- else }}{{- tolower .Os }}_{{end}}{{- 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
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
-
name: spr
repository:
owner: ejoffe
name: homebrew-tap
homepage: https://github.com/ejoffe/spr
description: Stacked Pull Requests on GitHub
install: |
bin.install "git-spr"
bin.install "git-amend"
bin.install "spr_reword_helper"
license: "MIT"
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
id: packages
homepage: https://github.com/ejoffe/spr
description: Stacked Pull Requests on GitHub
maintainer: Eitan <[email protected]>
license: MIT
formats:
- deb
- rpm
dependencies:
- git
recommends:
- golang
#snapcrafts:
# - name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
# summary: Stacked Pull Requests on GitHub
# description: |
# spr is a tool to easily run and automate stacked diff workflows on GitHub.
# confinement: classic
# publish: true
publishers:
- name: fury.io
ids:
- packages
dir: "{{ dir .ArtifactPath }}"
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/{{ .Env.FURY_ORG }}/