We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8ee824 commit a532410Copy full SHA for a532410
scripts/utils/upload-artifact.sh
@@ -12,9 +12,11 @@ if [[ "$SIGNED_URL" == "null" ]]; then
12
exit 1
13
fi
14
15
-UPLOAD_RESPONSE=$(tar "${BASE_PATH:+-C$BASE_PATH}" -cz "${ARTIFACT_PATH:-dist}" | curl -v -X PUT \
+TARBALL=$(cd dist && npm pack --silent)
16
+
17
+UPLOAD_RESPONSE=$(curl -v -X PUT \
18
-H "Content-Type: application/gzip" \
- --data-binary @- "$SIGNED_URL" 2>&1)
19
+ --data-binary "@dist/$TARBALL" "$SIGNED_URL" 2>&1)
20
21
if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
22
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
0 commit comments