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
18 changes: 17 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,20 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}

- name: Locate Homebrew cask
id: homebrew
shell: bash
run: |
set -euo pipefail
cask="$(find dist -name 'cpm.rb' -print -quit)"
[ -n "$cask" ] || { echo '::error::cpm.rb not found in dist'; exit 1; }
echo "cask=$cask" >> "$GITHUB_OUTPUT"

- name: Publish Homebrew cask
uses: open-cli-collective/.github/actions/homebrew-alias@v1
with:
canonical-cask-file: ${{ steps.homebrew.outputs.cask }}
canonical-token: cpm
tap-repo: open-cli-collective/homebrew-tap
tap-token: ${{ secrets.TAP_GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ archives:
# Homebrew cask with auto-quarantine removal for unsigned binaries
homebrew_casks:
- name: cpm
skip_upload: true
repository:
owner: open-cli-collective
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
homepage: https://github.com/open-cli-collective/cpm
description: "TUI for managing Claude Code plugins"
binary: cpm
binaries: [cpm]
hooks:
post:
install: |
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/cpm"]
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "cpm"], base: :staged_path
caveats: |
cpm has been installed. Run 'cpm --help' for usage.

Expand Down
Loading