diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a05b57e..e02f71b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,12 +20,21 @@ jobs: with: app-id: ${{ secrets.RELEASER_APP_ID }} private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }} + repositories: | + homebrew-tap + restish + + - name: Decode SSH Private Key + run: | + echo "${{ secrets.HOMEBREW_REPO_SSH_KEY }}" | base64 -d > /tmp/homebrew_repo_id_ed25519 + shell: bash - name: Build using goreleaser-cross run: | docker run --rm \ -e CGO_ENABLED=1 \ -e GITHUB_TOKEN=${{ steps.releaser-token.outputs.token }} \ + -v /tmp/homebrew_repo_id_ed25519:/tmp/homebrew_repo_id_ed25519 \ -v $PWD:/workspace \ -w /workspace \ ghcr.io/goreleaser/goreleaser-cross:v1.25-v2.12.7 \ diff --git a/.goreleaser.yml b/.goreleaser.yml index a020c59..40fe10e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -66,7 +66,20 @@ archives: formats: - zip -# TODO(#306): Return homebrew publication. +homebrew_casks: + - name: restish + homepage: https://rest.sh + description: "Restish is a CLI for interacting with REST-ish HTTP APIs with some nice features built-in." + repository: + owner: rest-sh + name: homebrew-tap + branch: main + git: + url: "git@github.com:rest-sh/homebrew-tap.git" + private_key: /tmp/homebrew_repo_id_ed25519 + commit_author: + name: Restish Releaser + email: release@rest.sh checksum: name_template: "checksums.txt"