diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 485eeb8..09bc892 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -5,6 +5,10 @@ on: branches: - "main" +env: + HOMEBREW_TAP: "homebrew-cli-tap" + OWNER_EMAIL: "dev@kaytu.io" + permissions: contents: write @@ -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 }} \ No newline at end of file + HOMEBREW_TAP: ${{ env.HOMEBREW_TAP }} + OWNER_EMAIL: ${{ env.OWNER_EMAIL }} \ No newline at end of file diff --git a/goreleaser.yaml b/goreleaser.yaml index a352853..c0fbc78 100644 --- a/goreleaser.yaml +++ b/goreleaser.yaml @@ -3,8 +3,6 @@ project_name: checkctl release: github: - # owner: "{{ .Env.REPOSITORY_OWNER }}" - # name: "{{ .Env.REPOSITORY_NAME }}" checksum: {} @@ -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