Skip to content

Commit

Permalink
chore: setup BCR publish
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Oct 29, 2023
1 parent 45bad21 commit cbb780e
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 1 deletion.
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 the ruleset 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.
5 changes: 5 additions & 0 deletions .bcr/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# See https://github.com/bazel-contrib/publish-to-bcr#a-note-on-release-automation

fixedReleaser:
login: alexeagle
email: [email protected]
17 changes: 17 additions & 0 deletions .bcr/metadata.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"homepage": "https://github.com/bazelbuild/rules_license",
"maintainers": [
{
"github": "aiuto",
"name": "Tony Aiuto"
},
{
"email": "[email protected]",
"github": "alexeagle",
"name": "Alex Eagle"
}
],
"repository": ["github:bazelbuild/rules_license"],
"versions": [],
"yanked_versions": {}
}
13 changes: 13 additions & 0 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
matrix:
platform:
- centos7
- debian10
- ubuntu2004
- macos
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
build_targets:
- "@rules_license//tests/..."
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}/rules_license-{TAG}.tar.gz"
}
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "rules_license",
version = "0.0.7", # Keep in sync with version.bzl
version = "0.0.0",
compatibility_level = 1,
)

Expand Down

0 comments on commit cbb780e

Please sign in to comment.