JuliaPluto / static-export-template

A template to automatically convert Pluto notebooks to an HTML website with GitHub Pages. Demo page:
https://juliapluto.github.io/static-export-template/
100 stars 17 forks source link

Notebook preview for PRs #6

Open greimel opened 3 years ago

greimel commented 3 years ago

It would be really cool, if notebooks were also built for PRs. Though rather than uploading them to gh-pages it would be nice to just upload them as artifacts for a preview (e.g. using actions/upload-artifact@v2.)

I couldn't figure out how to do this in one action, so that gh-pages and the artifact preview share the cache correctly.

sosiristseng commented 2 years ago

Working on this, I found workflow-artifact-pull-request-comment helpful to leave a link to the artifacts in the comments.

As to cache sharing, the PR branch could read the base/default branch's cache but not the other way around, AFAIK.