Skip to content

Add workflow to publish a release to the bcr. #1

Add workflow to publish a release to the bcr.

Add workflow to publish a release to the bcr. #1

name: "Push release to BCR"
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
version:
required: true
type: "string"
permissions:
id-token: write
attestations: write
contents: write
jobs:
publish:
name: "Publish to BCR"
permissions:
attestations: write
contents: write
id-token: write
uses: "bazel-contrib/publish-to-bcr/.github/workflows/[email protected]"
with:
tag_name: "${{ inputs.version }}"
registry_fork: "bazel-contrib/bazel-central-registry"
draft: false
secrets:
publish_token: "${{ secrets.BCR_PUBLISH_TOKEN }}"