Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chwan1 committed Dec 14, 2020
1 parent dbcf910 commit c947bb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`));
Expand Down
4 changes: 2 additions & 2 deletions sftp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`));
Expand Down

0 comments on commit c947bb4

Please sign in to comment.