Skip to content

Commit e0ef84d

Browse files
authored
ci: replace hermes-plugin-publish with memos-local-plugin-publish for V2 (#1730)
## Summary Replace the legacy `hermes-plugin-publish.yml` with `memos-local-plugin-publish.yml` as the sole publish workflow for the V2 unified plugin `@memtensor/memos-local-plugin`. - **File**: `.github/workflows/memos-local-plugin-publish.yml` - **Actions display name**: `MemOS Local Plugin (V2) — Build & Publish` - Remove all hermes / openclaw naming - Add optional `git_ref` input to pin a specific branch, tag, or SHA - Add `concurrency` group to prevent overlapping publishes - Include `Generate telemetry credentials` step (reads from repo secrets) - Git tag format: `memos-local-plugin-v<version>` ## Changed files - Deleted `.github/workflows/hermes-plugin-publish.yml` - Added `.github/workflows/memos-local-plugin-publish.yml` No business logic changes — CI workflow configuration only.
2 parents a75848d + ab3b820 commit e0ef84d

1 file changed

Lines changed: 20 additions & 8 deletions

File tree

.github/workflows/hermes-plugin-publish.yml renamed to .github/workflows/memos-local-plugin-publish.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1-
name: Hermes Plugin — Build Prebuilds & Publish
1+
name: MemOS Local Plugin (V2) — Build & Publish
22

33
on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: "Version to publish (e.g. 1.0.0 or 1.0.0-beta.1)"
7+
description: "Version to publish (e.g. 2.0.2 or 2.0.2-beta.1)"
88
required: true
99
tag:
1010
description: "npm dist-tag (latest for production, beta/next/alpha for testing)"
1111
required: true
1212
default: "latest"
13+
git_ref:
14+
description: "Git ref to build from (branch, tag, or SHA). Leave blank to use the branch selected above."
15+
required: false
16+
default: ""
17+
18+
concurrency:
19+
group: memos-local-plugin-publish
20+
cancel-in-progress: false
1321

1422
defaults:
1523
run:
@@ -34,6 +42,8 @@ jobs:
3442
runs-on: ${{ matrix.os }}
3543
steps:
3644
- uses: actions/checkout@v4
45+
with:
46+
ref: ${{ inputs.git_ref || github.ref }}
3747

3848
- uses: actions/setup-node@v4
3949
with:
@@ -56,14 +66,16 @@ jobs:
5666
- name: Upload prebuild artifact
5767
uses: actions/upload-artifact@v4
5868
with:
59-
name: prebuild-hermes-${{ matrix.platform }}
69+
name: prebuild-${{ matrix.platform }}
6070
path: apps/memos-local-plugin/prebuilds/${{ matrix.platform }}/better_sqlite3.node
6171

6272
publish:
6373
needs: build-prebuilds
6474
runs-on: ubuntu-latest
6575
steps:
6676
- uses: actions/checkout@v4
77+
with:
78+
ref: ${{ inputs.git_ref || github.ref }}
6779

6880
- uses: actions/setup-node@v4
6981
with:
@@ -74,14 +86,14 @@ jobs:
7486
uses: actions/download-artifact@v4
7587
with:
7688
path: apps/memos-local-plugin/prebuilds
77-
pattern: prebuild-hermes-*
89+
pattern: prebuild-*
7890
merge-multiple: false
7991

8092
- name: Organize prebuilds
8193
run: |
8294
cd prebuilds
83-
for dir in prebuild-hermes-*; do
84-
platform="${dir#prebuild-hermes-}"
95+
for dir in prebuild-*; do
96+
platform="${dir#prebuild-}"
8597
mkdir -p "$platform"
8698
mv "$dir/better_sqlite3.node" "$platform/"
8799
rmdir "$dir"
@@ -114,7 +126,7 @@ jobs:
114126
git config user.email "github-actions[bot]@users.noreply.github.com"
115127
git add apps/memos-local-plugin/package.json
116128
if ! git diff --staged --quiet; then
117-
git commit -m "release: hermes-plugin v${{ inputs.version }}"
129+
git commit -m "release: @memtensor/memos-local-plugin v${{ inputs.version }}"
118130
fi
119-
git tag "hermes-plugin-v${{ inputs.version }}"
131+
git tag "memos-local-plugin-v${{ inputs.version }}"
120132
git push origin HEAD --tags

0 commit comments

Comments
 (0)