Skip to content

Commit

Permalink
Update action distribution files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored May 27, 2024
1 parent 7912b85 commit c4011f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions upload-release/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand All @@ -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`);
}
Expand Down

0 comments on commit c4011f8

Please sign in to comment.