From 2cde2394506bc434b9fad2e0dc5254c3a1815ce4 Mon Sep 17 00:00:00 2001 From: John Chadwick Date: Fri, 8 Aug 2025 12:16:31 -0400 Subject: [PATCH] Add Publish to BCR workflow. --- .github/workflows/publish-to-bcr.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/publish-to-bcr.yaml diff --git a/.github/workflows/publish-to-bcr.yaml b/.github/workflows/publish-to-bcr.yaml new file mode 100644 index 0000000..f565313 --- /dev/null +++ b/.github/workflows/publish-to-bcr.yaml @@ -0,0 +1,24 @@ +name: Publish to BCR + +on: + release: + types: [published] + workflow_dispatch: + inputs: + tag_name: + description: 'Tag name for release (e.g. "v1.0.0")' + required: true + +permissions: + id-token: write + attestations: write + contents: write + +jobs: + publish: + uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.2.2 + with: + tag_name: ${{ inputs.tag_name || github.ref_name }} + registry_fork: bufbuild/bazel-central-registry + secrets: + publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}