Skip to content

Commit

Permalink
Fixing server sync state location
Browse files Browse the repository at this point in the history
  • Loading branch information
SamKirkland committed Nov 13, 2020
1 parent 8da6fdd commit 6d1a190
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,9 @@ function syncLocalToServer(client, diffs, logger, timings, args) {
}
logger.all(`----------------------------------------------------------------`);
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) {
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ftp-deploy-action",
"version": "4.0.0",
"version": "4.0.1",
"private": true,
"description": "Automate deploying websites and more with this GitHub action",
"main": "dist/index.js",
Expand All @@ -22,7 +22,7 @@
"license": "MIT",
"dependencies": {
"@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"
},
"devDependencies": {
Expand Down

0 comments on commit 6d1a190

Please sign in to comment.