Skip to content

Commit 7975e25

Browse files
authored
s3 binary upload with sha256 as metadata (#6247)
Equivalent of pytorch/pytorch#144887 for domains To be used in #6241
1 parent 9892bfe commit 7975e25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/_binary_upload.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ jobs:
117117
fi
118118
119119
for pkg in dist/*; do
120-
${AWS_CMD} "$pkg" "${PYTORCH_S3_BUCKET_PATH}" --acl public-read
120+
shm_id=$(sha256sum "${pkg}" | awk '{print $1}')
121+
${AWS_CMD} "$pkg" "${PYTORCH_S3_BUCKET_PATH}" --acl public-read \
122+
--metadata "checksum-sha256=${shm_id}"
121123
done
122124
123125
- name: Upload package to pypi

0 commit comments

Comments
 (0)