Skip to content

Commit

Permalink
don't install {chromote} and {webshot2} separately
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyetman committed Dec 15, 2023
2 parents 9519c0b + ddad4d1 commit 278bd2b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'
Expand Down

0 comments on commit 278bd2b

Please sign in to comment.