Skip to content

Commit

Permalink
s3 binary upload with sha256 as metadata (#6247)
Browse files Browse the repository at this point in the history
Equivalent of pytorch/pytorch#144887 for domains

To be used in #6241
  • Loading branch information
clee2000 authored Feb 3, 2025
1 parent 9892bfe commit 7975e25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/_binary_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ jobs:
fi
for pkg in dist/*; do
${AWS_CMD} "$pkg" "${PYTORCH_S3_BUCKET_PATH}" --acl public-read
shm_id=$(sha256sum "${pkg}" | awk '{print $1}')
${AWS_CMD} "$pkg" "${PYTORCH_S3_BUCKET_PATH}" --acl public-read \
--metadata "checksum-sha256=${shm_id}"
done
- name: Upload package to pypi
Expand Down

0 comments on commit 7975e25

Please sign in to comment.