Skip to content

Commit db56a74

Browse files
author
jchadwick-buf
authored
Add Publish to BCR workflow (#123)
🤦
1 parent be59a12 commit db56a74

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish to BCR
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
tag_name:
9+
description: 'Tag name for release (e.g. "v1.0.0")'
10+
required: true
11+
12+
permissions:
13+
id-token: write
14+
attestations: write
15+
contents: write
16+
17+
jobs:
18+
publish:
19+
uses: bazel-contrib/publish-to-bcr/.github/workflows/[email protected]
20+
with:
21+
tag_name: ${{ inputs.tag_name || github.ref_name }}
22+
registry_fork: bufbuild/bazel-central-registry
23+
secrets:
24+
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)