Skip to content

Publish to Bazel Central Registry #13

Publish to Bazel Central Registry

Publish to Bazel Central Registry #13

Workflow file for this run

name: Publish to Bazel Central Registry
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag_name:
description: 'Release tag to publish (e.g., v1.4.0)'
required: true
type: string
test_mode:
description: 'Test mode: open PR to your fork instead of upstream BCR'
required: false
type: boolean
default: false
# TODO: DONT MERGE THIS
pull_request:
jobs:
publish-to-bcr:
uses: bazel-contrib/publish-to-bcr/.github/workflows/[email protected]
with:
# tag_name: ${{ github.event.release.tag_name || inputs.tag_name }}
# TODO: DONT MERGE THIS, for testing during PR only
tag_name: 'v2.0.0-alpha.4'
registry_fork: CodSpeedHQ/bazel-central-registry
# TODO: Change this back to bazel-central-registry when ready
registry: CodSpeedHQ/bazel-central-registry
attest: true
permissions:
contents: write
id-token: write
attestations: write
secrets:
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}