Skip to content

Commit 4d5bee0

Browse files
committed
ci(release): rename brew token env var and add conditional upload
The environment variable for the Homebrew tap token has been renamed from HOMEBREW_TAP_GITHUB_TOKEN to GH_PAT to simplify naming. Additionally, conditional upload logic has been added to the brew configuration to skip upload when the token is not set, preventing release failures in environments where the token is unavailable.
1 parent 831eb28 commit 4d5bee0

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
args: release --clean
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.GH_PAT }}
33+
GH_PAT: ${{ secrets.GH_PAT }}

.goreleaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ release:
6666

6767
brews:
6868
- name: agentx
69+
skip_upload: "{{ if .Env.GH_PAT }}false{{ else }}true{{ end }}"
6970
repository:
7071
owner: agentsdance
7172
name: agentx
72-
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
73+
token: "{{ .Env.GH_PAT }}"
7374
directory: Formula
7475
homepage: "https://github.com/agentsdance/agentx"
7576
description: "CLI tool for managing MCP servers and skills across AI coding agents"

0 commit comments

Comments
 (0)