Skip to content

Commit

Permalink
Merge pull request #19 from kaytu-io/feat/homebrew
Browse files Browse the repository at this point in the history
fix: add homebrew section to goreleaser
  • Loading branch information
ADorigi authored Sep 19, 2024
2 parents dfc90c2 + 177572c commit c95a158
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- "main"

env:
HOMEBREW_TAP: "homebrew-cli-tap"
OWNER_EMAIL: "[email protected]"

permissions:
contents: write

Expand Down Expand Up @@ -41,6 +45,8 @@ jobs:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
REPOSITORY_NAME: ${{ github.repository }}
REPOSITORY_OWNER: ${{ github.repository_owner }}
REPOSITORY_NAME: ${{ github.repository }}
HOMEBREW_TAP: ${{ env.HOMEBREW_TAP }}
OWNER_EMAIL: ${{ env.OWNER_EMAIL }}
15 changes: 12 additions & 3 deletions goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ project_name: checkctl

release:
github:
# owner: "{{ .Env.REPOSITORY_OWNER }}"
# name: "{{ .Env.REPOSITORY_NAME }}"

checksum: {}

Expand Down Expand Up @@ -51,4 +49,15 @@ archives:
format: tar.gz
builds: [darwin]


brews:
- name: kaytu
homepage: https://github.com/{{ .Env.REPOSITORY_NAME }}
repository:
owner: "{{ .Env.REPOSITORY_OWNER }}"
name: "{{ .Env.HOMEBREW_TAP }}"
commit_author:
name: "{{ .Env.REPOSITORY_OWNER }}"
email: "{{ .Env.OWNER_EMAIL }}"
ids:
- linux
- darwin

0 comments on commit c95a158

Please sign in to comment.