diff --git a/upload-release/dist/index.js b/upload-release/dist/index.js index df1df27..5379c5a 100644 --- a/upload-release/dist/index.js +++ b/upload-release/dist/index.js @@ -50241,6 +50241,7 @@ var __importStar = (this && this.__importStar) || function (mod) { Object.defineProperty(exports, "__esModule", ({ value: true })); const core = __importStar(__nccwpck_require__(5316)); const fs = __importStar(__nccwpck_require__(7147)); +const path = __importStar(__nccwpck_require__(1017)); const node_scp_1 = __nccwpck_require__(4940); async function run() { let client = null; @@ -50263,7 +50264,7 @@ async function run() { username: core.getInput('username'), privateKey: Buffer.from(core.getInput('privateKey'), 'utf-8') }); - console.log(`Uploading release to ${directory}`); + console.log(`Creating release directory ${directory}`); const parts = directory.split('/'); let current = ''; for (const part of parts) { @@ -50275,10 +50276,12 @@ async function run() { console.log(`Created directory ${directory}`); for (const file of uploads) { console.log(`Uploading ${file}`); - await client.uploadFile(file, directory); + await client.uploadFile(file, path.join(directory, path.basename(file))); console.log(`Uploaded ${file}`); } - await client.uploadFile(metadata, directory); + console.log(`Uploading metadata`); + await client.uploadFile(metadata, path.join(directory, path.basename(metadata))); + console.log(`Uploaded metadata`); client.close(); console.log(`Release uploaded`); }