Skip to content

Commit

Permalink
feature: goreleaser homebrew integration
Browse files Browse the repository at this point in the history
  • Loading branch information
dhenkel92 committed Dec 5, 2023
1 parent c3d6ca0 commit a9e1688
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches:
- main
tags:
- '*'

jobs:
style:
Expand Down Expand Up @@ -53,8 +55,17 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Run GoReleaser
- name: GoReleaser dry-run
uses: goreleaser/[email protected]
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
version: latest
args: release --skip=publish --skip=validate --clean --snapshot
args: release --skip=publish --clean --snapshot
- name: GoReleaser publish
uses: goreleaser/[email protected]
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
16 changes: 14 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ builds:
- arm
- arm64
goos:
- linux
- windows
# - linux
# - windows
- darwin

archives:
Expand All @@ -42,6 +42,18 @@ archives:
format_overrides:
- goos: windows
format: zip
brews:
- name: kubectl-pdb
folder: Formula
homepage: "https://github.com/dhenkel92/kubectl-pdb"
license: "MIT"
repository:
owner: dhenkel92
name: homebrew-tap
branch: main
pull_request:
enabled: true

checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit a9e1688

Please sign in to comment.