Skip to content

Commit e960dab

Browse files
authored
ci: Re-enable Homebrew publication (#307)
* ci: Try out GoReleaser Homebrew Cask * ci: Include SSH key for homebrew-tap * ci: Mount SSH credentials mutably * ci: Reformat URL * ci: Don't merge to homebrew-tap main * ci: Be explicit about homebrew-tap base * ci: PRs not working so yoink it
1 parent d144442 commit e960dab

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,21 @@ jobs:
2020
with:
2121
app-id: ${{ secrets.RELEASER_APP_ID }}
2222
private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
23+
repositories: |
24+
homebrew-tap
25+
restish
26+
27+
- name: Decode SSH Private Key
28+
run: |
29+
echo "${{ secrets.HOMEBREW_REPO_SSH_KEY }}" | base64 -d > /tmp/homebrew_repo_id_ed25519
30+
shell: bash
2331

2432
- name: Build using goreleaser-cross
2533
run: |
2634
docker run --rm \
2735
-e CGO_ENABLED=1 \
2836
-e GITHUB_TOKEN=${{ steps.releaser-token.outputs.token }} \
37+
-v /tmp/homebrew_repo_id_ed25519:/tmp/homebrew_repo_id_ed25519 \
2938
-v $PWD:/workspace \
3039
-w /workspace \
3140
ghcr.io/goreleaser/goreleaser-cross:v1.25-v2.12.7 \

.goreleaser.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,20 @@ archives:
6666
formats:
6767
- zip
6868

69-
# TODO(#306): Return homebrew publication.
69+
homebrew_casks:
70+
- name: restish
71+
homepage: https://rest.sh
72+
description: "Restish is a CLI for interacting with REST-ish HTTP APIs with some nice features built-in."
73+
repository:
74+
owner: rest-sh
75+
name: homebrew-tap
76+
branch: main
77+
git:
78+
url: "[email protected]:rest-sh/homebrew-tap.git"
79+
private_key: /tmp/homebrew_repo_id_ed25519
80+
commit_author:
81+
name: Restish Releaser
82+
7083

7184
checksum:
7285
name_template: "checksums.txt"

0 commit comments

Comments
 (0)