mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Binary upload checksum (#144887)
Equivalent to https://github.com/pytorch/test-infra/pull/6172 but for pytorch Pull Request resolved: https://github.com/pytorch/pytorch/pull/144887 Approved by: https://github.com/atalman
This commit is contained in:
committed by
PyTorch MergeBot
parent
d0748566b4
commit
67ed47d886
@ -58,7 +58,9 @@ s3_upload() {
|
||||
for pkg in ${PKG_DIR}/*.${extension}; do
|
||||
(
|
||||
set -x
|
||||
${AWS_S3_CP} --no-progress --acl public-read "${pkg}" "${s3_upload_dir}"
|
||||
shm_id=$(sha256sum "${pkg}" | awk '{print $1}')
|
||||
${AWS_S3_CP} --no-progress --acl public-read "${pkg}" "${s3_upload_dir}" \
|
||||
--metadata "checksum-sha256=${shm_id}"
|
||||
)
|
||||
done
|
||||
)
|
||||
|
Reference in New Issue
Block a user