Skip to content

Commit

Permalink
Merge pull request #423 from metrumresearchgroup/goreleaser-update
Browse files Browse the repository at this point in the history
Update goreleaser configuration
  • Loading branch information
kyleam authored Aug 28, 2024
2 parents c56856f + d92447c commit 30c87f0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,6 @@ jobs:
args: release --clean
workdir: cmd/pkgr
env:
VERSION: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_GORELEASER_BREWS_TOKEN: ${{ secrets.GH_GORELEASER_BREWS_TOKEN }}
39 changes: 22 additions & 17 deletions cmd/pkgr/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# goreleaser.yml
# Build customization
version: 2
project_name: pkgr

release:
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
# Default is false.
prerelease: auto
draft: true
footer: |
## Installation Instructions
Expand Down Expand Up @@ -34,24 +36,27 @@ release:
sudo chmod +x /usr/local/bin/pkgr
```
build:
binary: pkgr
env:
- CGO_ENABLED=0
ldflags:
- -s -w -extldflags "-static" -X 'github.com/metrumresearchgroup/pkgr/cmd.VERSION={{ .Env.VERSION }}'
goos:
- windows
- darwin
- linux
goarch:
- amd64
builds:
- binary: pkgr
env:
- CGO_ENABLED=0
ldflags:
- -s -w -extldflags "-static" -X 'github.com/metrumresearchgroup/pkgr/cmd.VERSION={{ .Env.VERSION }}'
goos:
- windows
- darwin
- linux
goarch:
- amd64

# goreleaser.yml
brews:
# Repository to push the tap to.
-
tap:
owner: metrumresearchgroup
name: homebrew-tap

- repository:
owner: metrumresearchgroup
name: homebrew-tap
branch: master
token: "{{ .Env.GH_GORELEASER_BREWS_TOKEN }}"

changelog:
disable: true

0 comments on commit 30c87f0

Please sign in to comment.