OSM-Catalan / monitorOSM

Consulta canvis a OSM i genera informes de destrosses
https://osm-catalan.github.io/monitorOSM/
GNU General Public License v3.0
1 stars 4 forks source link

Avoid clashes when rendering the quarto web and pkgdown #12

Open jmaspons opened 9 months ago

jmaspons commented 9 months ago

This repo deploys a quarto web page + the pkgdown docs. The web is rendered daily with the results from queries to OpenStreetMap. Quarto delete all the files from pkgdown. Is there a way to avoid this? I would like to reduce the computations (= less CO2)

Current implementation:

Added output-dir: web to render the web in web folder instead of the root of the repository. It seems that it has no effect and all the files are deleted every time that the web is rendered (once a day). https://github.com/OSM-Catalan/monitorOSM/blob/df51e7ee703a5e2c026e1fbd83b0a9d493c8a952/_quarto.yml#L4

Render pkgdown at doc folder works but as quarto delete all the files, it has to be recreated every time that the web is refreshed https://github.com/OSM-Catalan/monitorOSM/blob/df51e7ee703a5e2c026e1fbd83b0a9d493c8a952/.github/workflows/pkgdown.yaml#L48

I would like to avoid to rerender pkgdown every day when there are no changes in the code. Perhaps it lacks a parameter in the gh action to render and publish the quarto website to specify where to render the page as in pkgdown

jmaspons commented 9 months ago

Check https://ropensci.slack.com/archives/C026GCWKC/p1701457104882949