Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
15 changes: 14 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "[email protected]:rest-sh/homebrew-tap.git"
private_key: /tmp/homebrew_repo_id_ed25519
commit_author:
name: Restish Releaser
email: [email protected]

checksum:
name_template: "checksums.txt"
Expand Down