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 ########################################