From cc72f144535bca9dbf2ffd09c7d08b5893f2616e Mon Sep 17 00:00:00 2001 From: Gia Thuan Lam Date: Sat, 30 Aug 2025 20:46:44 +0000 Subject: [PATCH] Add a simple publish to BCR workflow. --- .github/workflows/publish.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 00000000..7c0afc8d --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,32 @@ +# See https://github.com/bazel-contrib/publish-to-bcr. +name: Publish to BCR +on: + # Run the publish workflow after a successful release + # Can be triggered from the release.yaml workflow + workflow_call: + inputs: + tag_name: + required: true + type: string + secrets: + BCR_PUBLISH_TOKEN: + required: true + workflow_dispatch: + inputs: + tag_name: + required: true + type: string +jobs: + publish: + uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.2.3 + with: + draft: false + tag_name: ${{ inputs.tag_name }} + # TODO: https://github.com/grpc/grpc-kotlin/pull/641 - Create a fork within grpc org. + registry_fork: duckladydinh/bazel-central-registry + permissions: + attestations: write + contents: write + id-token: write + secrets: + publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}