Skip to content

Commit 8ae1bed

Browse files
Pandaclaude
andcommitted
chore: add release workflow, disable homebrew tap until repo exists
- Add .github/workflows/release.yml for GoReleaser on tag push - Comment out brews block in .goreleaser.yaml (MyAgentHubs/homebrew-tap not yet created) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent f507b40 commit 8ae1bed

3 files changed

Lines changed: 47 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version-file: go.mod
21+
22+
- uses: goreleaser/goreleaser-action@v6
23+
with:
24+
version: latest
25+
args: release --clean
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
GITHUB_OWNER: MyAgentHubs

.goreleaser.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ archives:
2222
format: zip
2323
name_template: "aimemo_{{.Version}}_{{.Os}}_{{.Arch}}"
2424

25-
brews:
26-
- name: aimemo
27-
repository:
28-
owner: "{{ .Env.GITHUB_OWNER }}"
29-
name: homebrew-tap
30-
homepage: "https://github.com/{{ .Env.GITHUB_OWNER }}/aimemo"
31-
description: "Zero-dependency MCP memory server for AI agents"
32-
license: MIT
33-
test: |
34-
system "#{bin}/aimemo --version"
35-
install: |
36-
bin.install "aimemo"
37-
generate_completions_from_executable(bin/"aimemo", "completion")
25+
# brews: (disabled until MyAgentHubs/homebrew-tap repo is created)
26+
# - name: aimemo
27+
# repository:
28+
# owner: "{{ .Env.GITHUB_OWNER }}"
29+
# name: homebrew-tap
30+
# homepage: "https://github.com/{{ .Env.GITHUB_OWNER }}/aimemo"
31+
# description: "Zero-dependency MCP memory server for AI agents"
32+
# license: MIT
33+
# test: |
34+
# system "#{bin}/aimemo --version"
35+
# install: |
36+
# bin.install "aimemo"
37+
# generate_completions_from_executable(bin/"aimemo", "completion")
3838

3939
checksum:
4040
name_template: "checksums.txt"

ISSUES.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ Found during local verification on 2026-02-18.
44

55
## CLI UX
66

7-
### [UX-3] `aimemo --version` 未实现
7+
### [UX-3] ~~`aimemo --version` 未实现~~ FIXED
8+
9+
### [TODO-1] Homebrew tap 未配置
10+
- 需先创建 `MyAgentHubs/homebrew-tap` repo
11+
- 再取消 `.goreleaser.yaml``brews:` 块的注释
12+
- 然后在后续版本发布时启用
813
- `--version` flag 不存在,报 "unknown flag"
914
- 建议:在 root.go 加 `rootCmd.Version = version`(GoReleaser 已注入 `main.version` ldflags)
1015

0 commit comments

Comments
 (0)