Skip to content

Commit e163207

Browse files
committed
Add publish-to-bcr support
1 parent 7061889 commit e163207

File tree

5 files changed

+56
-0
lines changed

5 files changed

+56
-0
lines changed

.bcr/config.yml

Whitespace-only changes.

.bcr/metadata.template.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"homepage": "https://github.com/RobotLocomotion/ruff_prebuilt",
3+
"maintainers": [
4+
{
5+
"email": "[email protected]",
6+
"github": "jwnimmer-tri",
7+
"github_user_id": 17596505,
8+
"name": "Jeremy Nimmer"
9+
}
10+
],
11+
"repository": [
12+
"github:RobotLocomotion/ruff_prebuilt"
13+
],
14+
"versions": [],
15+
"yanked_versions": {}
16+
}

.bcr/presubmit.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
matrix:
2+
platform:
3+
- debian11
4+
- ubuntu2404
5+
- macos
6+
- macos_arm64
7+
- windows
8+
bazel:
9+
- 8.x
10+
tasks:
11+
verify_targets:
12+
name: Verify build targets
13+
platform: ${{ platform }}
14+
bazel: ${{ bazel }}
15+
build_targets:
16+
- '@ruff_prebuilt//:ruff'

.bcr/source.template.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz",
3+
"integrity": "",
4+
"strip_prefix": "{REPO}-{VERSION}"
5+
}

.github/workflows/publish.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish to BCR
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag_name:
7+
required: true
8+
type: string
9+
jobs:
10+
publish:
11+
uses: bazel-contrib/publish-to-bcr/.github/workflows/[email protected]
12+
with:
13+
tag_name: ${{ inputs.tag_name }}
14+
registry_fork: jwnimmer-tri/bazel-central-registry
15+
attest: false
16+
permissions:
17+
contents: write
18+
secrets:
19+
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)