text: module.exports =
  /******/ (function(modules, runtime) { // webpackBootstrap
  /******/ 	"use strict";
  /******/ 	// The module cache
  /******/ 	var installedModules = {};
  /******/
  /******/ 	// The require function
  /******/ 	function __webpack_require__(moduleId) {
  /******/
  /******/ 		// Check if module is in cache
  /******/ 		if(installedModules[moduleId]) {
  /******/ 			return installedModules[moduleId].exports;
  /******/ 		}
  /******/ 		// Create a new module (and put it into the cache)
  /******/ 		var module = installedModules[moduleId] = {
  /******/ 			i: moduleId,
  /******/ 			l: false,
  /******/ 			exports: {}
  /******/ 		};
  /******/
  /******/ 		// Execute the module function
  /******/ 		var threw = true;
  /******/ 		try {
  /******/ 			modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  /******/ 			threw = false;
  /******/ 		} finally {
  /******/ 			if(threw) delete installedModules[moduleId];
  /******/ 		}
  /******/
  /******/ 		// Flag the module as loaded
  /******/ 		module.l = true;
  /******/
  /******/ 		// Return the exports of the module
  /******/ 		return module.exports;
  /******/ 	}
  /******/
  /******/
  /******/ 	__webpack_require__.ab = __dirname + "/";
  /******/
  /******/ 	// the startup function
  /******/ 	function startup() {
  /******/ 		// Load entry module and return exports
  /******/ 		return __webpack_require__(75);
  /******/ 	};
  /******/
  /******/ 	// run startup
  /******/ 	return startup();
  /******/ })
  /************************************************************************/
  /******/ ({
  
  /***/ 75:
  /***/ (function(__unusedmodule, __unusedexports, __webpack_require__) {
  
  const core = __webpack_require__(788);
  const fs = __webpack_require__(747);
  const path = __webpack_require__(622);
  
  let Client = __webpack_require__(899);
  let sftp = new Client();
  
  const host = core.getInput('host');
  const port = parseInt(core.getInput('port'));
  const username = core.getInput('username');
  const password = core.getInput('password');
  const agent = core.getInput('agent');
  const privateKeyIsFile = core.getInput('privateKeyIsFile');
  const passphrase = core.getInput('passphrase');
  
  var privateKey = core.getInput('privateKey');
  
  core.setSecret(password);
  if (passphrase != undefined) {
      core.setSecret(passphrase);
  }
  
  if (privateKeyIsFile == "true") {
      var privateKey = fs.readFileSync(privateKey);
      core.setSecret(privateKey);
  }
  
  const localPath = core.getInput('localPath');
  const remotePath = core.getInput('remotePath');
  const filter = new RegExp(core.getInput('filter'));
  
  sftp.connect({
      host: host,
      port: port,
      username: username,
      password: password,
      agent: agent,
      privateKey: privateKey,
      passphrase: passphrase
  }).then(async () => {
      console.log("Connection established.");
      console.log("Current working directory: " + await sftp.cwd())
  
      if (fs.lstatSync(localPath).isDirectory()) {
          return sftp.uploadDir(localPath, remotePath, filter);
      } else {
  
          var directory = await sftp.realPath(path.dirname(remotePath));
          if (!(await sftp.exists(directory))) {
              await sftp.mkdir(directory, true);
              console.log("Created directories.");
          }
  
          var modifiedPath = remotePath;
          if (await sftp.exists(remotePath)) {
              if ((await sftp.stat(remotePath)).isDirectory) {
                  var modifiedPath = modifiedPath + path.basename(localPath);
              }
          }
  
          return sftp.put(fs.createReadStream(localPath), modifiedPath);
      }
  
  }).then(() => {
      console.log("Upload finished.");
      return sftp.end();
  }).catch(err => {
      core.setFailed(`Action failed with error ${err}`);
      process.exit(1);
  });
  
  
  /***/ }),
  
  /***/ 622:
  /***/ (function(module) {
  
  module.exports = require("path");
  
  /***/ }),
  
  /***/ 747:
  /***/ (function(module) {
  
  module.exports = require("fs");
  
  /***/ }),
  
  /***/ 788:
  /***/ (function(module) {
  
  module.exports = eval("require")("@actions/core");
  
  
  /***/ }),
  
  /***/ 899:
  /***/ (function(module) {
  
  module.exports = eval("require")("ssh2-sftp-client");
  
  
  /***/ })
  
  /******/ });