From bf4420f91a5bf2dae75ed5e6d8b49eb16a34e09a Mon Sep 17 00:00:00 2001 From: jhudsl-robot Date: Thu, 3 Feb 2022 13:19:27 -0500 Subject: [PATCH] Render bookdown --- .github/workflows/render-bookdown.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/render-bookdown.yml b/.github/workflows/render-bookdown.yml index 90d3cf3b..e7cbc50b 100644 --- a/.github/workflows/render-bookdown.yml +++ b/.github/workflows/render-bookdown.yml @@ -21,8 +21,7 @@ jobs: # This workflow contains a single job called "build-all" render-main: runs-on: ubuntu-latest - container: - image: jhudsl/course_template + # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it @@ -75,13 +74,21 @@ jobs: # Run bookdown rendering - name: Run bookdown render id: bookdown - run: Rscript -e "bookdown::render_book('index.Rmd', output_format = 'all')" + run: | + docker run \ + --mount type=bind,target=/home/rstudio,source=$PWD \ + jhudsl/course_template \ + Rscript -e "bookdown::render_book('index.Rmd', output_format = 'all')" ##### If you do not wish to host your course on Coursera, you can delete this section ##### # Run Coursera version - name: Run Coursera version of render id: coursera - run: Rscript -e "leanbuild::render_coursera()" + run: | + docker run \ + --mount type=bind,target=/home/rstudio,source=$PWD \ + jhudsl/course_template \ + Rscript -e "leanbuild::render_coursera()" ##### End of Coursera rendering section ########################################