Skip to content

Commit a86c44e

Browse files
committed
feat: Implement plugin publishing workflow, enhance authentication with new migrations and email handling, and update web UI for improved package and dashboard management.
1 parent 39df651 commit a86c44e

5 files changed

Lines changed: 707 additions & 117 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish to Hivemind Registry
2+
3+
on:
4+
push:
5+
tags: ["v*.*.*"]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-python@v5
14+
with: { python-version: "3.12" }
15+
16+
- name: Install build tools
17+
run: pip install build hivemind-ai
18+
19+
- name: Validate plugin
20+
run: |
21+
python -c "
22+
import tomllib, sys
23+
data = tomllib.load(open('pyproject.toml','rb'))
24+
eps = data.get('project',{}).get('entry-points',{})
25+
if 'hivemind.plugins' not in eps:
26+
print('ERROR: No hivemind.plugins entry point found')
27+
sys.exit(1)
28+
print('Plugin entry point found:', eps['hivemind.plugins'])
29+
"
30+
31+
- name: Build and publish
32+
env:
33+
HIVEMIND_API_KEY: ${{ secrets.HIVEMIND_API_KEY }}
34+
HIVEMIND_REGISTRY_URL: https://registry.hivemind.rithul.dev
35+
run: hivemind plugins publish

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ env/
1919
.env
2020
.env.local
2121
.env.*.local
22+
.env.registry
23+
.env.registry.dev
24+
registry/.env
2225

2326
# Hivemind runtime and output
2427
.hivemind/
@@ -45,6 +48,7 @@ Thumbs.db
4548
.vscode/
4649
*.swp
4750
*.swo
51+
.cursor/
4852

4953
tmp
5054
**/build-errors.log

0 commit comments

Comments
 (0)