Skip to content

Commit fe0f702

Browse files
jiachengzhencursoragent
andcommitted
ci: replace hermes-plugin-publish with memos-local-plugin-publish
- Rename workflow file to memos-local-plugin-publish.yml - Display name: MemOS Local Plugin (V2) — Build & Publish - Remove all hermes/openclaw naming from workflow - Add git_ref input to pin branch/tag/SHA - Add concurrency group - Generate telemetry credentials step (from secrets) - Git tag format: memos-local-plugin-v<version> This is the single workflow for publishing @memtensor/memos-local-plugin. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 9d068ba commit fe0f702

1 file changed

Lines changed: 27 additions & 8 deletions

File tree

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

Lines changed: 27 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"
@@ -92,6 +104,13 @@ jobs:
92104
- name: Install dependencies (skip native build)
93105
run: npm install --ignore-scripts
94106

107+
- name: Generate telemetry credentials
108+
run: node scripts/generate-telemetry-credentials.cjs
109+
env:
110+
MEMOS_ARMS_ENDPOINT: ${{ secrets.MEMOS_ARMS_ENDPOINT }}
111+
MEMOS_ARMS_PID: ${{ secrets.MEMOS_ARMS_PID }}
112+
MEMOS_ARMS_ENV: ${{ secrets.MEMOS_ARMS_ENV }}
113+
95114
- name: Bump version
96115
run: npm version ${{ inputs.version }} --no-git-tag-version --allow-same-version
97116

@@ -107,7 +126,7 @@ jobs:
107126
git config user.email "github-actions[bot]@users.noreply.github.com"
108127
git add apps/memos-local-plugin/package.json
109128
if ! git diff --staged --quiet; then
110-
git commit -m "release: hermes-plugin v${{ inputs.version }}"
129+
git commit -m "release: @memtensor/memos-local-plugin v${{ inputs.version }}"
111130
fi
112-
git tag "hermes-plugin-v${{ inputs.version }}"
131+
git tag "memos-local-plugin-v${{ inputs.version }}"
113132
git push origin HEAD --tags

0 commit comments

Comments
 (0)