Fixing server sync state location

This commit is contained in:
SamKirkland 2020-11-13 13:42:37 -06:00
parent 8da6fdde60
commit 6d1a190aef
3 changed files with 8 additions and 6 deletions

4
dist/index.js vendored
View File

@ -2177,7 +2177,9 @@ function syncLocalToServer(client, diffs, logger, timings, args) {
} }
logger.all(`----------------------------------------------------------------`); logger.all(`----------------------------------------------------------------`);
logger.all(`🎉 Sync complete. Saving current server state to "${args["server-dir"] + args["state-name"]}"`); logger.all(`🎉 Sync complete. Saving current server state to "${args["server-dir"] + args["state-name"]}"`);
yield utilities_1.retryRequest(logger, () => __awaiter(this, void 0, void 0, function* () { return yield client.uploadFrom(args["local-dir"] + args["state-name"], args["state-name"]); })); if (args["dry-run"] === false) {
yield utilities_1.retryRequest(logger, () => __awaiter(this, void 0, void 0, function* () { return yield client.uploadFrom(args["local-dir"] + args["state-name"], args["server-dir"] + args["state-name"]); }));
}
}); });
} }
function deploy(deployArgs) { function deploy(deployArgs) {

6
package-lock.json generated
View File

@ -147,9 +147,9 @@
} }
}, },
"@samkirkland/ftp-deploy": { "@samkirkland/ftp-deploy": {
"version": "1.0.1", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/@samkirkland/ftp-deploy/-/ftp-deploy-1.0.1.tgz", "resolved": "https://registry.npmjs.org/@samkirkland/ftp-deploy/-/ftp-deploy-1.0.2.tgz",
"integrity": "sha512-axyX1OLDulqh7/NW/yrcu/BQCGGgY/lt8AI7cHotR8ebq1awYHkf3aV0sEc11Blb2ZtezyKmd8SMIEVN4UGLQg==", "integrity": "sha512-7sqBlAHZasrumoZ0zT+bmqdKwnGXF9qVZw7e/laOY2lEAjO6B1RfqlRr6k8DMTUsIX8n3+EEAwW5Eps8eIC94A==",
"requires": { "requires": {
"basic-ftp": "^4.6.2", "basic-ftp": "^4.6.2",
"lodash": "^4.17.20", "lodash": "^4.17.20",

View File

@ -1,6 +1,6 @@
{ {
"name": "ftp-deploy-action", "name": "ftp-deploy-action",
"version": "4.0.0", "version": "4.0.1",
"private": true, "private": true,
"description": "Automate deploying websites and more with this GitHub action", "description": "Automate deploying websites and more with this GitHub action",
"main": "dist/index.js", "main": "dist/index.js",
@ -22,7 +22,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^1.2.6", "@actions/core": "^1.2.6",
"@samkirkland/ftp-deploy": "^1.0.1", "@samkirkland/ftp-deploy": "^1.0.2",
"ts-node-dev": "^1.0.0-pre.62" "ts-node-dev": "^1.0.0-pre.62"
}, },
"devDependencies": { "devDependencies": {