Add automated publish-to-bcr workflow #498
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements automated publication to Bazel Central Registry using the publish-to-bcr tooling. s2geometry is already in BCR but publication is manual.
Changes
.bcr/src/templates: metadata with maintainers, source archive config withstrip_prefixpointing tosrc/, presubmit matching existing BCR entry.bcr/config.yml: SpecifiesmoduleRoots: ["src"]since MODULE.bazel lives in src/ directory.bcr/README.md: Setup instructions for maintainers covering PAT creation, secret configuration, and troubleshooting.github/workflows/publish-to-bcr.yml: Triggers on release events, uses publish-to-bcr@v1.0.0 reusable workflow with attestation support (noregistry_forkparameter - auto-detects from PAT owner's fork)Maintainer Setup Required
repoandworkflowpermissionsBCR_PUBLISH_TOKENrepository secretAfter setup, new releases automatically create BCR pull requests. Manual trigger available via workflow_dispatch.