BCR Publishing Templates
This directory contains templates used by the Publish to BCR GitHub Action to automatically publish new versions of cel-cpp to the Bazel Central Registry (BCR).
Files
- metadata.template.json: Contains repository metadata including homepage, maintainers, and repository location
- source.template.json: Template for generating the source.json file that tells BCR where to download release archives
- presubmit.yml: Defines build and test tasks that BCR will run to verify each published version
How it works
When a new tag matching the pattern v*.*.* is created: 1. The GitHub Actions
workflow .github/workflows/publish_to_bcr.yml is triggered 2. The workflow
uses these templates to generate a BCR entry 3. A pull request is automatically
created against the Bazel Central Registry 4. Once merged, the new version
becomes available to Bazel users via bzlmod
Template Variables
The following variables are automatically substituted: - {OWNER}: Repository
owner (google) - {REPO}: Repository name (cel-cpp) - {VERSION}: Version
number extracted from the tag (e.g., 0.14.0 from v0.14.0) - {TAG}: Full
tag name (e.g., v0.14.0)