Skip to content

Commit 27d8a8d

Browse files
jDramaixcopybara-github
authored andcommitted
Configure GitHub workflows to publish to bcr.
This was enabled for J2CL but not for the other projects. PiperOrigin-RevId: 788581745
1 parent d2cbd02 commit 27d8a8d

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.bcr/config.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,22 @@ jobs:
3737
release:
3838
uses: google/j2cl/.github/workflows/release_common.yaml@master
3939

40-
# The reusable workflow requires 'write' access to contents to push a git tag.
4140
permissions:
41+
# Permissions for creating a github release.
4242
contents: write
43+
# Permissions for publishing to bcr.
44+
id-token: write
45+
attestations: write
4346

4447
# Pass the inputs from the manual trigger to the reusable workflow.
4548
with:
4649
version: ${{ github.event.inputs.version }}
4750
publish_to_sonatype: true
4851
sonatype_auto_publish: ${{ github.event.inputs.sonatype_auto_publish == 'true' }}
52+
create_github_release: true
4953
continue_if_tag_exists: ${{ github.event.inputs.continue_if_tag_exists == 'true' }}
54+
publish_to_bcr: true
55+
bcr_bazel_test_command: "bazel build java/..."
5056

5157
# Allow the reusable workflow to access the secrets.
5258
secrets: inherit

0 commit comments

Comments
 (0)