Fix trailing slash bug in upload script

This commit is contained in:
Ashcon Partovi
2023-04-07 16:05:47 -07:00
parent 0a91dd9f71
commit c0c5f07218

View File

@@ -2,7 +2,7 @@ import { AwsClient } from "aws4fetch";
import { getBuild, getRelease, getSemver } from "../src/github";
const [tag] = process.argv.slice(2);
const bucketUrl = new URL(env("AWS_BUCKET"), env("AWS_ENDPOINT"));
const bucketUrl = new URL(`${env("AWS_BUCKET")}/`, env("AWS_ENDPOINT"));
const aws = new AwsClient({
accessKeyId: env("AWS_ACCESS_KEY_ID"),
secretAccessKey: env("AWS_SECRET_ACCESS_KEY"),