-
Notifications
You must be signed in to change notification settings - Fork 16.1k
feat: automate publishing releases to Bazel Central Registry #16014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
alexeagle marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ], | ||
| "repository": ["github:protocolbuffers/protobuf"], | ||
| "versions": [], | ||
zhangskz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "yanked_versions": {} | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| matrix: | ||
| platform: ["debian10", "macos", "ubuntu2004"] | ||
mkruskal-google marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| 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' | ||
mkruskal-google marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| bcr_test_module: | ||
| module_path: "examples" | ||
| matrix: | ||
| platform: ["centos7", "debian10", "macos", "ubuntu2004"] | ||
alexeagle marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| tasks: | ||
| run_test_module: | ||
| name: "Run test module" | ||
| platform: ${{ platform }} | ||
| build_targets: | ||
| - "//..." | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.