diff --git a/.github/workflows/build-and-deploy-vignette.yaml b/.github/workflows/build-and-deploy-vignette.yaml index 29e21fb..05cd186 100644 --- a/.github/workflows/build-and-deploy-vignette.yaml +++ b/.github/workflows/build-and-deploy-vignette.yaml @@ -13,6 +13,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Cache apt dependencies + uses: actions/cache@v3 + with: + path: /var/lib/apt/lists + key: ${{ runner.os }}-apt + restore-keys: | + ${{ runner.os }}-apt + - name: Set up R uses: r-lib/actions/setup-r@v2 @@ -26,8 +34,8 @@ jobs: - name: Install dependencies run: | - install.packages("devtools") - devtools::install_deps(dependencies = TRUE) + Rscript -e 'install.packages("devtools")' + Rscript -e 'devtools::install_deps(dependencies = TRUE)' - name: Install the jellyfisher package run: | @@ -35,7 +43,7 @@ jobs: - name: Build vignette run: | - R -e 'rmarkdown::render("vignettes/introduction.Rmd", output_file = "docs/introduction.html")' + Rscript -e 'rmarkdown::render("vignettes/introduction.Rmd", output_file = "docs/introduction.html")' echo 'Jellyfisher Vignettes

Jellyfisher Vignettes

' > docs/index.html deploy: