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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ jobs:
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_PAT: ${{ secrets.GH_PAT }}
15 changes: 14 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,31 @@ release:

brews:
- name: agentx
skip_upload: "{{ if .Env.GH_PAT }}false{{ else }}true{{ end }}"
repository:
owner: agentsdance
name: agentx
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
token: "{{ .Env.GH_PAT }}"
pull_request:
enabled: true
base: master
directory: Formula
homepage: "https://github.com/agentsdance/agentx"
description: "CLI tool for managing MCP servers and skills across AI coding agents"
license: "Apache-2.0"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
# This ensures "brew install --HEAD" works
custom_block: |
head do
url "https://github.com/agentsdance/agentx.git", branch: "master"
depends_on "go" => :build
end
install: |
if build.head?
system "go", "build", "-ldflags", "-s -w -X github.com/agentsdance/agentx/internal/version.Version=head", "-o", "agentx", "."
end
bin.install "agentx"
test: |
system "#{bin}/agentx", "--version"
22 changes: 14 additions & 8 deletions Formula/agentx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,48 @@
# brew install --build-from-source ./Formula/agentx.rb
#
# After publishing, users can install via:
# brew tap agentsdance/tap
# brew tap agentsdance/agentx
# brew install agentx

class Agentx < Formula
desc "CLI tool for managing MCP servers and skills across AI coding agents"
homepage "https://github.com/agentsdance/agentx"
license "Apache-2.0"
version "0.0.1"
version "0.0.7"

on_macos do
on_intel do
url "https://github.com/agentsdance/agentx/releases/download/v#{version}/agentx_#{version}_darwin_amd64.tar.gz"
# sha256 will be auto-populated by GoReleaser
sha256 "PLACEHOLDER_SHA256_DARWIN_AMD64"
sha256 "6b7181fab5420bd6675e042cf5db5ba02809099fe49057bd1e1cae79c9e8de21"
end

on_arm do
url "https://github.com/agentsdance/agentx/releases/download/v#{version}/agentx_#{version}_darwin_arm64.tar.gz"
# sha256 will be auto-populated by GoReleaser
sha256 "PLACEHOLDER_SHA256_DARWIN_ARM64"
sha256 "e5ca1aed035684a8c6d672399718418b350f433ba2a72766bd781df99252e6ee"
end
end

on_linux do
on_intel do
url "https://github.com/agentsdance/agentx/releases/download/v#{version}/agentx_#{version}_linux_amd64.tar.gz"
sha256 "PLACEHOLDER_SHA256_LINUX_AMD64"
sha256 "19038bde1de5a4bc761c810762d0cdecdadbe85a21799896280951c24e2844a1"
end

on_arm do
url "https://github.com/agentsdance/agentx/releases/download/v#{version}/agentx_#{version}_linux_arm64.tar.gz"
sha256 "PLACEHOLDER_SHA256_LINUX_ARM64"
sha256 "3f2da0a3b3e6880f4af2dbbab07d1fc88998c1bf8cf387d12e9928398d7568e4"
end
end

head do
url "https://github.com/agentsdance/agentx.git", branch: "master"
depends_on "go" => :build
end

def install
if build.head?
system "go", "build", "-ldflags", "-s -w -X github.com/agentsdance/agentx/internal/version.Version=head", "-o", "agentx", "."
end
bin.install "agentx"
end

Expand Down