File tree Expand file tree Collapse file tree 6 files changed +67
-32
lines changed
Expand file tree Collapse file tree 6 files changed +67
-32
lines changed Original file line number Diff line number Diff line change 11# Bazel Central Registry
22
33When the ruleset is released, we want it to be published to the
4- Bazel Central Registry automatically:
5- < https://registry.bazel.build >
4+ Bazel Central Registry: < https://registry.bazel.build >
65
76This folder contains configuration files to automate the publish step.
87See < https://github.com/bazel-contrib/publish-to-bcr/blob/main/templates/README.md >
Original file line number Diff line number Diff line change 11fixedReleaser :
2- login : aiuto
3- email : aiuto@google.com
2+ login : tonyaiuto
3+ email : tony@aiuto.dev
Original file line number Diff line number Diff line change 11{
2- "homepage" : " https://github.com/bazelbuild/rules_pkg" ,
3- "maintainers" : [
4- {
5- "email" : " aiuto@datadoghq.com" ,
6- "name" : " Tony Aiuto"
7- }
8- ],
9- "repository" : [" github:bazelbuild/rules_pkg" ],
10- "versions" : [],
11- "yanked_versions" : {}
2+ "homepage" : " https://github.com/bazelbuild/rules_pkg" ,
3+ "maintainers" : [
4+ {
5+ "email" : " tony@aiuto.dev" ,
6+ "name" : " Tony Aiuto" ,
7+ "github" : " aiuto" ,
8+ "github_user_id" : " 3044252"
9+ }
10+ ],
11+ "repository" : [
12+ " github:bazelbuild/rules_pkg"
13+ ],
14+ "versions" : [],
15+ "yanked_versions" : {}
1216}
Original file line number Diff line number Diff line change 1- build_targets : &build_targets
2- - ' @rules_pkg//...'
3- # Re-enable those targets when toolchain registration is supported.
4- - ' -@rules_pkg//toolchains/...'
5- - ' -@rules_pkg//pkg:make_rpm'
6-
7- platforms :
8- centos7_java11_devtoolset10 :
9- build_targets : *build_targets
10- debian10 :
11- build_targets : *build_targets
12- macos :
13- build_targets : *build_targets
14- ubuntu2204 :
15- build_targets : *build_targets
16- windows :
17- build_targets : *build_targets
1+ matrix :
2+ platform :
3+ - debian10
4+ - ubuntu2004
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+ - ' @rules_pkg//...'
17+ - ' -@rules_pkg//toolchains/...'
18+ - ' -@rules_pkg//pkg:make_rpm'
Original file line number Diff line number Diff line change 11{
2- "integrity" : " **leave this alone** " ,
2+ "integrity" : " " ,
33 "url" : " https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/rules_pkg-{TAG}.tar.gz"
44}
Original file line number Diff line number Diff line change 1+ name : " Publish release to BCR"
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ required : true
8+ type : " string"
9+
10+ permissions :
11+ id-token : write
12+ attestations : write
13+ contents : write
14+
15+ jobs :
16+ publish :
17+ name : " Publish to BCR"
18+
19+ permissions :
20+ attestations : write
21+ contents : write
22+ id-token : write
23+
24+ uses : " bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.1.0"
25+ with :
26+ tag_name : " ${{ inputs.version }}"
27+ tag_prefix : " "
28+ registry_fork : " bazel-contrib/bazel-central-registry"
29+ draft : false
30+ secrets :
31+ publish_token : " ${{ secrets.BCR_PUBLISH_TOKEN }}"
You can’t perform that action at this time.
0 commit comments