Skip to content

Commit fc7441a

Browse files
authored
Fix BCR publishing (#238)
* Fix BCR publishing * Update Bazel module lockfile
1 parent 6a4311f commit fc7441a

2 files changed

Lines changed: 35 additions & 49 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish to BCR
2+
3+
on:
4+
release:
5+
types: [released]
6+
workflow_dispatch:
7+
inputs:
8+
tag_name:
9+
description: The release tag to publish to the BCR, e.g. v0.8.2
10+
required: true
11+
type: string
12+
13+
jobs:
14+
publish:
15+
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.4.2
16+
permissions:
17+
contents: write # Upload release files / read the release
18+
id-token: write # Attest provenance
19+
attestations: write # Attest provenance
20+
with:
21+
tag_name: ${{ github.event.release.tag_name || inputs.tag_name }}
22+
registry_fork: bazel-contrib/bazel-central-registry
23+
# release.yml uses bazel-contrib/.github@v7, which does not produce
24+
# attestations, so skip attestation upload.
25+
attest: false
26+
draft: false
27+
secrets:
28+
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}

MODULE.bazel.lock

Lines changed: 7 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)