fix(core.gbapp): Fixed no publish of artifacts.

This commit is contained in:
Rodrigo Rodriguez 2021-12-29 07:53:14 -03:00
parent 4452a311b1
commit c12a7d736c

View file

@ -500,12 +500,12 @@ export class GBDeployer implements IGBDeployer {
const nextFolder = urlJoin(remotePath, item.name);
await this.downloadFolder(min, localPath, nextFolder);
} else {
let download = false;
let download = true;
if (Fs.existsSync(itemPath)) {
const dt = Fs.statSync(itemPath);
if (new Date(dt.mtime) < new Date(item.lastModifiedDateTime)) {
download = true;
if (new Date(dt.mtime) > new Date(item.lastModifiedDateTime)) {
download = false;
}
}