Skip to content

Commit e3b151d

Browse files
authored
output sha256sum for uploaded bundle (#213)
* output sha256sum for uploaded bundle * include sha256sum in the bundle * use shasum -a 256
1 parent 8a6eeec commit e3b151d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,5 @@ jobs:
8888
name: bundle
8989
path: |
9090
output/builtin-actors.car
91+
output/builtin-actors.car.sha256sum
9192
output/upload.json

upload-bundle.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
set -e
44

55
bundle=output/builtin-actors.car
6+
7+
shasum -a 256 $bundle > $bundle.sha256sum
8+
cat $bundle.sha256sum
9+
610
curl -k -X POST -F "data=@${bundle};type=application/octet-stream;filename=\"${bundle}\"" -H "Authorization: Bearer $ESTUARY_TOKEN" -H "Content-Type: multipart/form-data" https://shuttle-4.estuary.tech/content/add > output/upload.json
711
cat output/upload.json

0 commit comments

Comments
 (0)