Skip to content
This repository was archived by the owner on Oct 8, 2026. It is now read-only.
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
43 changes: 0 additions & 43 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,46 +141,3 @@ jobs:
artifacts/**/*.zip
checksums.txt
bin/install.sh

publish-homebrew:
needs: [version, release, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
path: artifacts

- name: Update Homebrew formula
env:
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
run: |
VERSION="${{ needs.version.outputs.version }}"
SHA_DARWIN_ARM64=$(shasum -a 256 artifacts/prism-darwin-arm64/*.tar.gz | cut -d' ' -f1)
SHA_DARWIN_AMD64=$(shasum -a 256 artifacts/prism-darwin-amd64/*.tar.gz | cut -d' ' -f1)
SHA_LINUX_ARM64=$(shasum -a 256 artifacts/prism-linux-arm64/*.tar.gz | cut -d' ' -f1)
SHA_LINUX_AMD64=$(shasum -a 256 artifacts/prism-linux-amd64/*.tar.gz | cut -d' ' -f1)

git clone "https://x-access-token:${GH_TOKEN}@github.com/circlesac/homebrew-tap.git"
cd homebrew-tap
cp ../homebrew/prism.rb.template Formula/prism.rb
sed -i "s/VERSION_PLACEHOLDER/${VERSION}/g" Formula/prism.rb
sed -i "s/SHA_DARWIN_ARM64/${SHA_DARWIN_ARM64}/g" Formula/prism.rb
sed -i "s/SHA_DARWIN_AMD64/${SHA_DARWIN_AMD64}/g" Formula/prism.rb
sed -i "s/SHA_LINUX_ARM64/${SHA_LINUX_ARM64}/g" Formula/prism.rb
sed -i "s/SHA_LINUX_AMD64/${SHA_LINUX_AMD64}/g" Formula/prism.rb

git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add Formula/prism.rb
git diff --cached --quiet && exit 0
git commit -m "Update prism to ${VERSION}"
for attempt in 1 2 3; do
git pull --rebase origin main
if git push origin main; then
exit 0
fi
printf 'push attempt %s failed\n' "$attempt" >&2
done
exit 1
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@ Connect LLM provider accounts and clients to Prism.
## Install

```sh
brew install circlesac/tap/crcl circlesac/tap/prism
```

If `crcl` is already installed, Prism CLI can also be installed directly:

```sh
brew install circlesac/tap/crcl
curl -fsSL https://github.com/circlesac/prism-cli/releases/latest/download/install.sh | sh
```

`circlesac/tap/prism` on Homebrew is now the Prism menu bar app, which brings its own `prism` command; this CLI is installed with the script above.

## Sign in

```sh
Expand Down
36 changes: 0 additions & 36 deletions homebrew/prism.rb.template

This file was deleted.

Loading