Skip to content

Commit 30c87f0

Browse files
authored
Merge pull request #423 from metrumresearchgroup/goreleaser-update
Update goreleaser configuration
2 parents c56856f + d92447c commit 30c87f0

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,6 @@ jobs:
9090
args: release --clean
9191
workdir: cmd/pkgr
9292
env:
93+
VERSION: ${{ github.ref_name }}
9394
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
GH_GORELEASER_BREWS_TOKEN: ${{ secrets.GH_GORELEASER_BREWS_TOKEN }}

cmd/pkgr/goreleaser.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# goreleaser.yml
22
# Build customization
3+
version: 2
34
project_name: pkgr
45

56
release:
67
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
78
# If set to true, will mark the release as not ready for production.
89
# Default is false.
910
prerelease: auto
11+
draft: true
1012
footer: |
1113
## Installation Instructions
1214
@@ -34,24 +36,27 @@ release:
3436
sudo chmod +x /usr/local/bin/pkgr
3537
```
3638
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
4951

5052
# goreleaser.yml
5153
brews:
5254
# 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

0 commit comments

Comments
 (0)