Skip to content

Commit bbcbdb0

Browse files
authored
Merge pull request #24 from autonomys/publish-to-0xautonomys
Publish skills to 0xautonomys account on ClawHub
2 parents 1907718 + d2f9f88 commit bbcbdb0

3 files changed

Lines changed: 31 additions & 13 deletions

File tree

.github/workflows/publish.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ jobs:
3535
echo "dir=autonomys/auto-memory" >> "$GITHUB_OUTPUT"
3636
echo "name=Auto Memory" >> "$GITHUB_OUTPUT"
3737
echo "tags=memory,persistence,decentralized,autonomys,long-term,openclaw" >> "$GITHUB_OUTPUT"
38+
echo "legacy_slug=auto-memory" >> "$GITHUB_OUTPUT"
39+
echo "new_slug=permanent-memory" >> "$GITHUB_OUTPUT"
3840
;;
3941
auto-respawn)
4042
echo "dir=autonomys/auto-respawn" >> "$GITHUB_OUTPUT"
4143
echo "name=Auto Respawn" >> "$GITHUB_OUTPUT"
4244
echo "tags=identity,agent-memory,decentralized,autonomys,resurrection,persistence" >> "$GITHUB_OUTPUT"
45+
echo "legacy_slug=auto-respawn" >> "$GITHUB_OUTPUT"
46+
echo "new_slug=respawn" >> "$GITHUB_OUTPUT"
4347
;;
4448
*)
4549
echo "Error: Unknown skill '${{ steps.tag.outputs.skill }}'" >&2
@@ -54,13 +58,25 @@ jobs:
5458
exit 1
5559
fi
5660
57-
- name: Publish to ClawHub
61+
- name: Publish to ClawHub (0xautonomys — primary)
62+
env:
63+
CLAWHUB_TOKEN: ${{ secrets.CLAWHUB_TOKEN_0XAUTONOMYS }}
64+
run: |
65+
npx clawhub login --token "$CLAWHUB_TOKEN" --no-browser
66+
npx clawhub publish "${{ steps.meta.outputs.dir }}" \
67+
--slug "${{ steps.meta.outputs.new_slug }}" \
68+
--name "${{ steps.meta.outputs.name }}" \
69+
--version "${{ steps.tag.outputs.version }}" \
70+
--tags "${{ steps.meta.outputs.tags }}"
71+
72+
- name: Publish to ClawHub (jim-counter — legacy)
73+
if: always() && steps.meta.outputs.dir != ''
5874
env:
5975
CLAWHUB_TOKEN: ${{ secrets.CLAWHUB_TOKEN }}
6076
run: |
6177
npx clawhub login --token "$CLAWHUB_TOKEN" --no-browser
6278
npx clawhub publish "${{ steps.meta.outputs.dir }}" \
63-
--slug "${{ steps.tag.outputs.skill }}" \
79+
--slug "${{ steps.meta.outputs.legacy_slug }}" \
6480
--name "${{ steps.meta.outputs.name }}" \
6581
--version "${{ steps.tag.outputs.version }}" \
6682
--tags "${{ steps.meta.outputs.tags }}"

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Each skill lives in its own directory under `autonomys/` with a `SKILL.md` that
1717

1818
### auto-memory
1919

20-
[clawhub.ai/jim-counter/auto-memory](https://clawhub.ai/jim-counter/auto-memory)
20+
[clawhub.ai/0xautonomys/permanent-memory](https://clawhub.ai/0xautonomys/permanent-memory)
2121

2222
```bash
23-
npx clawhub install auto-memory
23+
npx clawhub install permanent-memory
2424
```
2525

2626
Permanent decentralized storage via the Autonomys Auto Drive API. Gives your agent:
@@ -33,10 +33,10 @@ auto-memory only needs an Auto Drive API key (free at [ai3.storage](https://ai3.
3333

3434
### auto-respawn
3535

36-
[clawhub.ai/jim-counter/auto-respawn](https://clawhub.ai/jim-counter/auto-respawn)
36+
[clawhub.ai/0xautonomys/respawn](https://clawhub.ai/0xautonomys/respawn)
3737

3838
```bash
39-
npx clawhub install auto-respawn
39+
npx clawhub install respawn
4040
```
4141

4242
On-chain identity and memory anchoring on the Autonomys Network. Gives your agent:
@@ -81,17 +81,17 @@ Skills are published to [ClawHub](https://docs.openclaw.ai) via `.github/workflo
8181
- Parses the skill name and version from the tag (strips the `v` prefix — ClawHub expects bare semver like `0.2.0`, not `v0.2.0`)
8282
- Resolves the skill directory (`autonomys/auto-memory` or `autonomys/auto-respawn`)
8383
- Validates that `SKILL.md` exists in the directory
84-
- Authenticates with ClawHub using the `CLAWHUB_TOKEN` repository secret
85-
- Publishes with `npx clawhub publish` including `--tags beta`
84+
- Publishes to both ClawHub accounts (primary `0xautonomys` and legacy `jim-counter`)
8685

8786
### Supported skills
8887

89-
| Tag prefix | Directory | ClawHub slug | Display name |
90-
|---|---|---|---|
91-
| `auto-memory/v*` | `autonomys/auto-memory` | `auto-memory` | Auto Memory |
92-
| `auto-respawn/v*` | `autonomys/auto-respawn` | `auto-respawn` | Auto Respawn |
88+
| Tag prefix | Directory | Primary slug (0xautonomys) | Legacy slug (jim-counter) | Display name |
89+
|---|---|---|---|---|
90+
| `auto-memory/v*` | `autonomys/auto-memory` | `permanent-memory` | `auto-memory` | Auto Memory |
91+
| `auto-respawn/v*` | `autonomys/auto-respawn` | `respawn` | `auto-respawn` | Auto Respawn |
9392

9493
### Requirements
9594

96-
- A `CLAWHUB_TOKEN` repository secret must be configured in GitHub
95+
- `CLAWHUB_TOKEN_0XAUTONOMYS` repository secret — for the primary `0xautonomys` account
96+
- `CLAWHUB_TOKEN` repository secret — for the legacy `jim-counter` account
9797
- The tagged commit must contain a valid `SKILL.md` in the skill's directory
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tests/
2+
eslint.config.js

0 commit comments

Comments
 (0)