Skip to content

Commit fc13661

Browse files
committed
Publish schema files to releases
1 parent d3ec6ab commit fc13661

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/build_registry.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,13 @@ def build_registry():
486486
icon_dst = dist_dir / f"{agent_id}.svg"
487487
icon_dst.write_bytes(icon_src.read_bytes())
488488

489+
# Copy schema files to dist
490+
for schema_file in ("agent.schema.json", "registry.schema.json"):
491+
schema_src = registry_dir / schema_file
492+
if schema_src.exists():
493+
schema_dst = dist_dir / schema_file
494+
schema_dst.write_bytes(schema_src.read_bytes())
495+
489496
print(f"\nBuilt dist/ with {len(agents)} agents")
490497

491498

agent.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "https://github.com/agentclientprotocol/registry/agent.schema.json",
3+
"$id": "https://github.com/agentclientprotocol/registry/releases/latest/download/agent.schema.json",
44
"title": "ACP Agent",
55
"description": "Schema for ACP agent registry entries",
66
"type": "object",

registry.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "https://github.com/agentclientprotocol/registry/registry.schema.json",
3+
"$id": "https://github.com/agentclientprotocol/registry/releases/latest/download/registry.schema.json",
44
"title": "ACP Agent Registry",
55
"description": "Schema for the aggregated ACP agent registry index",
66
"type": "object",

0 commit comments

Comments
 (0)