forked from ejoffe/spr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
104 lines (104 loc) · 2.67 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
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/commithook
id: commithook
binary: spr_commit_hook
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 }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: macos
linux: linux
windows: windows
386: i386
amd64: x86_64
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
tap:
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_commit_hook"
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 }}/