diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f7b633..44b2d96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/README.md b/README.md index fb3b8b3..28f4fae 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/homebrew/prism.rb.template b/homebrew/prism.rb.template deleted file mode 100644 index 83c9fa9..0000000 --- a/homebrew/prism.rb.template +++ /dev/null @@ -1,36 +0,0 @@ -class Prism < Formula - desc "Manage provider accounts for Prism" - homepage "https://github.com/circlesac/prism-cli" - version "VERSION_PLACEHOLDER" - license "MIT" - - on_macos do - on_arm do - url "https://github.com/circlesac/prism-cli/releases/download/v#{version}/prism-darwin-arm64.tar.gz" - sha256 "SHA_DARWIN_ARM64" - end - on_intel do - url "https://github.com/circlesac/prism-cli/releases/download/v#{version}/prism-darwin-amd64.tar.gz" - sha256 "SHA_DARWIN_AMD64" - end - end - - on_linux do - on_arm do - url "https://github.com/circlesac/prism-cli/releases/download/v#{version}/prism-linux-arm64.tar.gz" - sha256 "SHA_LINUX_ARM64" - end - on_intel do - url "https://github.com/circlesac/prism-cli/releases/download/v#{version}/prism-linux-amd64.tar.gz" - sha256 "SHA_LINUX_AMD64" - end - end - - def install - bin.install "prism" - end - - test do - system "#{bin}/prism", "--version" - end -end