mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-04-27 19:47:31 +00:00
👷 Add GoReleaser job for automatically generating the Homebrew formulae (#1258)
* feat: add goreleaser config for creating automatically homebrew formula * Fix the formatting of YAML and add a newline at the end of file * Fix the formatting of YAML, add a newline at the end of file and change the commit author Co-authored-by: M. Mert Yildiran <me@mertyildiran.com>
This commit is contained in:
parent
d61fbcf4e0
commit
67f9c36048
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@ -202,3 +202,28 @@ jobs:
|
|||||||
tag: ${{ steps.versioning.outputs.version }}
|
tag: ${{ steps.versioning.outputs.version }}
|
||||||
prerelease: ${{ github.ref != 'refs/heads/main' }}
|
prerelease: ${{ github.ref != 'refs/heads/main' }}
|
||||||
bodyFile: 'cli/bin/README.md'
|
bodyFile: 'cli/bin/README.md'
|
||||||
|
|
||||||
|
goreleaser:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Fetch all tags
|
||||||
|
run: git fetch --force --tags
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: 1.17
|
||||||
|
|
||||||
|
- name: Run GoReleaser
|
||||||
|
uses: goreleaser/goreleaser-action@v2
|
||||||
|
with:
|
||||||
|
distribution: goreleaser
|
||||||
|
version: ${{ env.GITHUB_REF_NAME }}
|
||||||
|
args: release --rm-dist
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
|
||||||
|
9
.goreleaser.yml
Normal file
9
.goreleaser.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
brews:
|
||||||
|
- name: kubeshark
|
||||||
|
homepage: https://github.com/kubeshark/kubeshark
|
||||||
|
tap:
|
||||||
|
owner: kubeshark
|
||||||
|
name: homebrew-kubeshark
|
||||||
|
commit_author:
|
||||||
|
name: mertyildiran
|
||||||
|
email: me@mertyildiran.com
|
Loading…
Reference in New Issue
Block a user