rstudio / pkgs.rstudio.com

https://pkgs.rstudio.com
1 stars 1 forks source link

Build index.html automatically #1

Closed cderv closed 3 years ago

cderv commented 3 years ago

This is a PR to build on GHA the index page.

For this purpose I introduced the use of renv 📦 . The project has a renv.lock that we are using to install all the required dependencies. This also allows to cache the packages and speed up installation.

Currently the action terminate by committing to the branch. However, I believe this is deployed using netlify, isn't it ?

Depending on this above, we need to adjust this PR.

This PR does not touch the way it works currently to add a new site i.e adding to _redirects. We could maybe have a YAML to store the website and package name, and the Rmd rendering would write the _redirects file. I'll open an issue to track this.

apreshill commented 3 years ago

Thank you! Does this push to a branch named gha-build?

cderv commented 3 years ago

Yes currently it pushed to this branch. The two commits you are seeing with message Re-build index page are made from the workflow directly.

Plan is to change to master once merged.

apreshill commented 3 years ago

Since we may be using these kinds of GHA (https://github.com/nwtgck/actions-netlify), to do items for me:

cderv commented 3 years ago

I am merging and will fix after if it does not work as expected