diff --git a/.github/workflows/render-README.qmd.yml b/.github/workflows/render-README.qmd.yml index 6d4001b..f1607e8 100644 --- a/.github/workflows/render-README.qmd.yml +++ b/.github/workflows/render-README.qmd.yml @@ -3,7 +3,7 @@ name: Render QMD Files on: push: branches: - - main # Adjust as needed + - dev/nick # Adjust as needed jobs: render_qmd: @@ -18,7 +18,17 @@ jobs: wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.2.269/quarto-1.2.269-linux-amd64.deb sudo dpkg -i quarto-1.2.269-linux-amd64.deb + - name: Install R and Required Packages + run: | + sudo apt-get update + sudo apt-get install -y r-base + mkdir -p ~/R/library # Ensure the writable library path exists + Rscript -e 'install.packages("rmarkdown", lib="~/R/library", repos="https://cloud.r-project.org")' + Rscript -e 'install.packages("jsonlite", lib="~/R/library", repos="https://cloud.r-project.org")' + - name: Render README.qmd files to README.md + env: + R_LIBS_USER: ~/R/library # Ensure Quarto sees the correct library path run: | for file in $(find . -name 'README.qmd'); do # Render each README.qmd to README.md