netlify / ask-netlify

A place to submit questions for Netlify to answer in tutorials, podcasts and blog posts
https://ask.netlify.com
32 stars 8 forks source link

Where or how can I access the publish directory of a previous build #78

Closed bert-bruggeman closed 3 years ago

bert-bruggeman commented 4 years ago

About me

My question in a little more detail

Where or how can I access the publish directory of a previous build, my app checks if a file is present in the generated directory before building it again, for example:

I could use a cache system, writing the generated css to '/opt/build/cache' and compare/copy that file to the publish directory when building the site, but that seems a bit unnecessary knowing the files where already generated on a previous build...

Another solution I used in the past is writing the files back to github after build (with [skip ci] in the commit message) but that feels a little dirty...

Additional comments for Netlify

A strange thing, when checking my publish directory before building ;1 folder (of many) is still present?

Pieparker commented 3 years ago

Hey there! If you still require help, can I ask that you visit Netlify Community and share your question there? You may wish to search and see if this has been asked before!