From ddad4d13079274834b29c5371e36cddefdc423ab Mon Sep 17 00:00:00 2001 From: CJ Yetman Date: Wed, 28 Sep 2022 15:14:02 -0700 Subject: [PATCH] don't install {chromote} and {webshot2} separately now that they are both available on CRAN --- .github/workflows/pkgdown.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pkgdown.yml b/.github/workflows/pkgdown.yml index 8cc65ea..0b26021 100644 --- a/.github/workflows/pkgdown.yml +++ b/.github/workflows/pkgdown.yml @@ -14,6 +14,9 @@ name: pkgdown jobs: pkgdown: runs-on: ubuntu-latest + # Only restrict concurrency for non-PR jobs + concurrency: + group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: @@ -25,20 +28,14 @@ jobs: with: use-public-rspm: true - - name: Install chromote and webshot2 separately - run: | - install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/") - pak::pkg_install("rstudio/chromote") - pak::pkg_install("rstudio/webshot2") - shell: Rscript {0} - - uses: r-lib/actions/setup-r-dependencies@v2 with: extra-packages: any::pkgdown, local::. needs: website - name: Build site - run: Rscript -e 'pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)' + run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) + shell: Rscript {0} - name: Deploy to GitHub pages 🚀 if: github.event_name != 'pull_request'