Skip to content

Commit 868310a

Browse files
Add publish to BCR config (#290)
* Add publish to BCR config Signed-off-by: Maxwell Elliott <maxwell.elliott@gotinder.com> * more updates Signed-off-by: Maxwell Elliott <maxwell.elliott@gotinder.com> --------- Signed-off-by: Maxwell Elliott <maxwell.elliott@gotinder.com>
1 parent 1ab4e2e commit 868310a

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Publish new releases to Bazel Central Registry.
2+
name: Publish to BCR
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag_name:
7+
description: git tag being released
8+
required: true
9+
type: string
10+
jobs:
11+
publish:
12+
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.0.0
13+
with:
14+
tag_name: ${{ inputs.tag_name }}
15+
# GitHub repository which is a fork of the upstream where the Pull Request will be opened.
16+
registry_fork: maxwellE/bazel-central-registry
17+
permissions:
18+
contents: write
19+
secrets:
20+
# Necessary to push to the BCR fork, and to open a pull request against a registry
21+
publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module(
22
name = "bazel-diff",
3-
version = "11.0.1",
3+
version = "11.0.2",
44
compatibility_level = 0,
55
)
66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ First, add the following snippet to your project:
269269
#### Bzlmod snippet
270270

271271
```bazel
272-
bazel_dep(name = "bazel-diff", version = "11.0.1")
272+
bazel_dep(name = "bazel-diff", version = "11.0.2")
273273
```
274274

275275
You can now run the tool with:

0 commit comments

Comments
 (0)