Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .bcr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Bazel Central Registry

When protobuf is released, we want it to be published to the
Bazel Central Registry automatically:
<https://registry.bazel.build>

This folder contains configuration files to automate the publish step.
See <https://github.com/bazel-contrib/publish-to-bcr/blob/main/templates/README.md>
for authoritative documentation about these files.
4 changes: 4 additions & 0 deletions .bcr/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# see https://github.com/bazel-contrib/publish-to-bcr/#a-note-on-release-automation
fixedReleaser:
login: thesayyn
email: sahin@aspect.dev
22 changes: 22 additions & 0 deletions .bcr/metadata.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"homepage": "https://github.com/protocolbuffers/protobuf",
"maintainers": [
{
"github": "comius",
"name": "Ivo List"
},
{
"email": "alex@aspect.dev",
"github": "alexeagle",
"name": "Alex Eagle"
},
{
"email": "sahin@aspect.dev",
"github": "thesayyn",
"name": "Şahin Yort"
}
],
"repository": ["github:protocolbuffers/protobuf"],
"versions": [],
"yanked_versions": {}
}
24 changes: 24 additions & 0 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
matrix:
platform: ["debian10", "macos", "ubuntu2004"]

tasks:
verify_targets:
name: "Verify build targets"
platform: ${{ platform }}
build_targets:
- '@protobuf//:all'
- '@protobuf//java/core/...'
- '@protobuf//java/lite/...'
- '-@protobuf//:common_dist_files'
- '-@protobuf//:proto_api'

bcr_test_module:
module_path: "examples"
matrix:
platform: ["centos7", "debian10", "macos", "ubuntu2004"]
tasks:
run_test_module:
name: "Run test module"
platform: ${{ platform }}
build_targets:
- "//..."
5 changes: 5 additions & 0 deletions .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "**leave this alone**",
"strip_prefix": "{REPO}-{VERSION}",
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{VERSION}.zip"
}