marinebon / p2p

Pole to Pole website
https://marinebon.github.io/p2p
3 stars 1 forks source link

Streamline OBIS download and render #22

Closed bbest closed 3 years ago

bbest commented 3 years ago

Streamline strategy to get pages rendered with latest OBIS data

Differentiate steps using Github Actions:

bbest commented 3 years ago

Now using Github Actions here:

bbest commented 3 years ago

TODO: create another script/obis_render.R to run in workflow before losing downloaded OBIS data.

bbest commented 3 years ago

Clicking Run workflow under Github Actions here:

https://github.com/marinebon/p2p/actions?query=workflow%3Aobis_download

image

Then seeing progress:

image

bbest commented 3 years ago

Yay, it worked:

image

Next step is to render the sites with another script in the job.

bbest commented 3 years ago

Hey @eqmh and @7yl4r,

The Github Action obis_download to download OBIS data and render sites is now fully working (eg run 73d5534)and set to run on the 7th day of each month:

Note that the make_sites.R script got moved into the scripts/ folder. I updated the .travis.yml accordingly, but this Github Action takes care of updating the SST/Chl too so think the Travis-CI method can be retired. We could setup a separate frequency with two different Github Actions, eg OBIS monthly and SST/Chl daily.