File tree Expand file tree Collapse file tree 2 files changed +24
-17
lines changed Expand file tree Collapse file tree 2 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 90
90
args : release --clean
91
91
workdir : cmd/pkgr
92
92
env :
93
+ VERSION : ${{ github.ref_name }}
93
94
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
95
+ GH_GORELEASER_BREWS_TOKEN : ${{ secrets.GH_GORELEASER_BREWS_TOKEN }}
Original file line number Diff line number Diff line change 1
1
# goreleaser.yml
2
2
# Build customization
3
+ version : 2
3
4
project_name : pkgr
4
5
5
6
release :
6
7
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
7
8
# If set to true, will mark the release as not ready for production.
8
9
# Default is false.
9
10
prerelease : auto
11
+ draft : true
10
12
footer : |
11
13
## Installation Instructions
12
14
@@ -34,24 +36,27 @@ release:
34
36
sudo chmod +x /usr/local/bin/pkgr
35
37
```
36
38
37
- build :
38
- binary : pkgr
39
- env :
40
- - CGO_ENABLED=0
41
- ldflags :
42
- - -s -w -extldflags "-static" -X 'github.com/metrumresearchgroup/pkgr/cmd.VERSION={{ .Env.VERSION }}'
43
- goos :
44
- - windows
45
- - darwin
46
- - linux
47
- goarch :
48
- - amd64
39
+ builds :
40
+ - binary : pkgr
41
+ env :
42
+ - CGO_ENABLED=0
43
+ ldflags :
44
+ - -s -w -extldflags "-static" -X 'github.com/metrumresearchgroup/pkgr/cmd.VERSION={{ .Env.VERSION }}'
45
+ goos :
46
+ - windows
47
+ - darwin
48
+ - linux
49
+ goarch :
50
+ - amd64
49
51
50
52
# goreleaser.yml
51
53
brews :
52
54
# Repository to push the tap to.
53
- -
54
- tap :
55
- owner : metrumresearchgroup
56
- name : homebrew-tap
57
-
55
+ - repository :
56
+ owner : metrumresearchgroup
57
+ name : homebrew-tap
58
+ branch : master
59
+ token : " {{ .Env.GH_GORELEASER_BREWS_TOKEN }}"
60
+
61
+ changelog :
62
+ disable : true
You can’t perform that action at this time.
0 commit comments