MD-Anderson-Bioinformatics / NGCHM-R

An R library for creating Next-Generation Clustered Heat Maps (NG-CHM)
http://bioinformatics.mdanderson.org/main/NG-CHM-V2:Overview
7 stars 3 forks source link

Actions bug fix: change order of steps #27

Closed marohrdanz closed 2 years ago

marohrdanz commented 3 years ago

This PR fixes a bug in the GitHub Action for building the pkgdown website.

The most recent build failed because the Action was trying to render index.Rmd before installing the NGCHM package. The rendered file, index.md, is the landing page for the website, but not a part of the R package. (This file is large, and so intentionally kept out of the R package; see c033c2832ff9ee00e950a2a1cc42cd5c3db21c67).

Some recent builds passed even with this incorrect ordering because R packages are cached between builds, so the NGCHM package was available when the Action attempted to render index.Rmd. However, if a cache is unused for 7 days GitHub automatically deletes it, and so the most recent build failed.

Also, the URL for the site is fixed--it was inadvertently set to my fork's URL.