diff --git a/README.md b/README.md index ce26347..4af8abf 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +This is for UltraCombos internal use only. It is a quick and dirty fix for folder creation. Please don't use this action in your production environment. + # sftp-upload-action this is a github action script for upload files to server via SFTP protocol. diff --git a/dist/index.js b/dist/index.js index 191f0bb..74ed13f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27272,9 +27272,9 @@ __webpack_require__.r(__webpack_exports__); -function deploy(config, options) { +async function deploy(config, options) { const deployer = new sftp_sync_deploy_lib_sftpSync__WEBPACK_IMPORTED_MODULE_2__.SftpSync(config, options); - let queuifiedSftp = deployer.initQueuifiedSftp(); + let queuifiedSftp = await deployer.initQueuifiedSftp(); config.remoteDir && queuifiedSftp.mkdir(config.remoteDir); console.log(chalk__WEBPACK_IMPORTED_MODULE_0___default().green(`* Deploying to host ${config.host}`)); diff --git a/sftp.js b/sftp.js index de5316a..cf495e9 100644 --- a/sftp.js +++ b/sftp.js @@ -2,9 +2,9 @@ import chalk from 'chalk'; import { SftpSyncConfig, SftpSyncOptions } from 'sftp-sync-deploy/lib/config'; import { SftpSync } from 'sftp-sync-deploy/lib/sftpSync'; -function deploy(config, options) { +async function deploy(config, options) { const deployer = new SftpSync(config, options); - let queuifiedSftp = deployer.initQueuifiedSftp(); + let queuifiedSftp = await deployer.initQueuifiedSftp(); config.remoteDir && queuifiedSftp.mkdir(config.remoteDir); console.log(chalk.green(`* Deploying to host ${config.host}`));