Skip to content

feat(release): sync sharded registry manifests and add community plugin release workflow - #6

Merged
kajimi16 merged 1 commit into
mainfrom
feat/sharded-registry-sync-and-community-release
Dec 4, 2026
Merged

kajimi16 merged 1 commit into
mainfrom
feat/sharded-registry-sync-and-community-release

Conversation

@kajimi16

@kajimi16 kajimi16 commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Sharded registry manifest generation (scripts/prepare_release_entry.py):
    • Added --trust-tier (official | �erified | community, default official) and --repo-url (defaults to https://github.com/oh-my-hita/official-plugins for official releases), emitting trustTier and repo alongside all existing legacy + v2 fields.
    • Added --shard-path helper mode and shard_rel_path() mapping dex -> manifests/dex/.json, ui -> manifests/ui/.json, jar -> manifests/desktop/.json.
    • Added merge_shard_entry() & --write-shard-root to idempotently update shard files while preserving historical �ersions[] and curated metadata, plus early community namespace guard against reserved hita.* capabilities.
  • Official release workflow upgrade (.github/workflows/release-plugins.yml):
    • �uild-and-release now emits rustTier: official &
      epo into manifests/{dex,ui}/.json artifacts (
      egistry-entry-).
    • sync-registry-pr gracefully checks REGISTRY_PUSH_TOKEN (emitting an actionable notice + Job Summary when unset instead of failing �ctions/checkout), writes/merges sharded manifests into oh-my-hita/registry, runs scripts/build_index.py & scripts/verify_registry.py when present, and opens a clean sync PR.
  • Turnkey reusable community release workflow (.github/workflows/reusable-community-plugin-release.yml):
    • External plugin repos can call uses: oh-my-hita/official-plugins/.github/workflows/reusable-community-plugin-release.yml@main with plugin_type, gradle_task, dist_dir, rust_tier (default community).
    • Builds with JDK 17 + Android SDK 35/36, validates v2 plugin.json, computes sha256 & size, publishes a GitHub Release on the caller repo, uploads a ready-to-submit manifests//.json artifact, and prints exact gh PR submission commands + JSON in Job Summary.
  • Documentation & Tests:
    • Added docs/community-plugin-publishing.md and linked it from README.md.
    • Extended scripts/test_scaffold.py with unit + CLI tests for --trust-tier, --repo-url, shard path mapping, version history preservation, and YAML validation across all .github/workflows/*.yml.

Local Verification

  • python -B scripts/test_scaffold.py -v -> 8/8 tests PASSED
  • PyYAML parse check on all 7 .github/workflows/*.yml -> PASSED
  • python -B scripts/verify_no_pii.py --staged & --all -> PASSED

@kajimi16
kajimi16 merged commit c75dcfb into main Dec 4, 2026
2 checks passed
@kajimi16
kajimi16 deleted the feat/sharded-registry-sync-and-community-release branch December 4, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant