How to access the previous deploy or published directory when building

Also this: