Skip to content

Commit 47b3385

Browse files
alexeaglekarenwuz
authored andcommitted
refactor(bazel): publish a separate .tar.gz (#24065)
Avoids mutating the protobuf tar.gz file that's created prior to the Bazel Central Registry publishing step. Closes #24065 COPYBARA_INTEGRATE_REVIEW=#24065 from protocolbuffers:alexeagle/bazel-tar c7df27e PiperOrigin-RevId: 821727519
1 parent 453cfb2 commit 47b3385

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.bcr/source.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"integrity": "**leave this alone**",
33
"strip_prefix": "{REPO}-{VERSION}",
4-
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{VERSION}.tar.gz"
4+
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{VERSION}.bazel.tar.gz"
55
}

.github/workflows/release_bazel_module.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
release:
1919
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.2.3
2020
with:
21-
release_files: protobuf-*.tar.gz
21+
release_files: protobuf-*.bazel.tar.gz
2222
prerelease: false
2323
tag_name: ${{ inputs.tag_name }}
2424
# The release was already created by Google-internal mechanism,

.github/workflows/release_prep.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -o errexit -o nounset -o pipefail
77
# https://github.com/bazel-contrib/.github/blob/v7.2.3/.github/workflows/release_ruleset.yaml#L104
88
TAG=$1
99
PREFIX="protobuf-${TAG:1}"
10-
ARCHIVE="$PREFIX.tar.gz"
10+
ARCHIVE="$PREFIX.bazel.tar.gz"
1111
ARCHIVE_TMP=$(mktemp)
1212
INTEGRITY_FILE=${PREFIX}/bazel/private/prebuilt_tool_integrity.bzl
1313

0 commit comments

Comments
 (0)