Skip to content

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

Add workflow to publish a release to the bcr.

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

name: "Push release to BCR"
on:
workflow_dispatch:
inputs:
version:
required: true
default: "1.2.0"
type: "string"
pull_request:
branches: [ "main" ]
inputs:
version:
default: "1.2.0"
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/publish.yaml@v1.0.0"
with:
tag_name: "${{ inputs.version }}"
tag_prefix: ""
# registry_fork: "bazel-contrib/bazel-central-registry"
registry_fork: "aiuto/bazel-central-registry"
draft: false
secrets:
publish_token: "${{ secrets.BCR_PUBLISH_TOKEN }}"