Skip to content

Commit 9f2bdf8

Browse files
committed
add prefix
1 parent 984253a commit 9f2bdf8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/playground/scripts/upload_bundle.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ const rcloneOpts = (process.env.CI
6262

6363
const remote = process.env.RCLONE_REMOTE || "rescript";
6464
const bucket = "cdn-assets";
65-
const dest = `${remote}:${bucket}/${tag}`;
6665

6766
// Create a temporary directory for bundling
6867
const tmpDir = path.join(playgroundDir, ".tmp");
@@ -91,11 +90,11 @@ exec(`tar \\
9190
console.log(`Uploading v${version} artifacts...`);
9291
exec(`rclone sync ${rcloneOpts} --fast-list \\
9392
"${artifactsDir}" \\
94-
"${dest}"
93+
"${remote}:${bucket}/${tag}"
9594
`);
9695

9796
console.log("Uploading archive...");
9897
exec(`rclone copyto ${rcloneOpts} \\
9998
"${archivePath}" \\
100-
"${dest}.tar.zst"
99+
"${remote}:${bucket}/playground-bundles/${tag}.tar.zst"
101100
`);

0 commit comments

Comments
 (0)