robinsonlabuzh / robinsonlabuzh.github.io

Robinson Lab website
https://robinsonlabuzh.github.io
MIT License
1 stars 9 forks source link

CI/CD rendering #216

Open imallona opened 1 week ago

imallona commented 1 week ago

A dockerfile and a procedure to render the artifacts (HTMLs) exist.

Should we automate deployment via github actions, so the rendering is triggered on PR?

Suggested procedure:

  1. User opens a PR with their changes (no html, only Rmd/md)
  2. CI/CD renders the HTMLs and deploys them to staging (or stores them as downloadable artifacts)
  3. PR reviewer/assignee reviews both 1 and 2s logs and HTMLs
  4. PR reviewer/assignee merges and deploys to production; or suggests changes and skips deployment to production.

Example: staging vs review vs production procedure for omnibenchmark as gitlab action YAML and pipelines

retogerber commented 1 week ago

staging websites with github actions is apparently not supported. There exist workarounds such as https://dcyoung.github.io/post-gh-pages-staging-deployments/ but seems a bit too complicated. Just downloading and looking at the artifacts seems more reasonable.