Skip to content

Commit aedc271

Browse files
committed
ci: Include SSH key for homebrew-tap
1 parent 97edee7 commit aedc271

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,17 @@ jobs:
2424
homebrew-tap
2525
restish
2626
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
31+
2732
- name: Build using goreleaser-cross
2833
run: |
2934
docker run --rm \
3035
-e CGO_ENABLED=1 \
3136
-e GITHUB_TOKEN=${{ steps.releaser-token.outputs.token }} \
37+
-v /tmp/homebrew_repo_id_ed25519:/tmp/homebrew_repo_id_ed25519:ro \
3238
-v $PWD:/workspace \
3339
-w /workspace \
3440
ghcr.io/goreleaser/goreleaser-cross:v1.25-v2.12.7 \

.goreleaser.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ homebrew_casks:
7676
pull_request:
7777
enabled: true
7878
draft: true # TODO(cfunkhouser): Delete after testing.
79+
git:
80+
url: 'ssh://[email protected]:rest-sh/homebrew-tap.git'
81+
private_key: /tmp/homebrew_repo_id_ed25519
7982

8083
checksum:
8184
name_template: "checksums.txt"

0 commit comments

Comments
 (0)