Skip to content

Commit

Permalink
Fixed the pkgdown workflow
Browse files Browse the repository at this point in the history
The pkgdown workflow used old versions (v1) of actions from r-lib,
such as setup-pandoc, setup-r, and setup-r-dependencies.
These versions seemed not to work anymore, in part because they
rely on Node.js 12 which was deprecated by GitHub, and in part
because they tried to download older versions of R.

Modified the `r-setup-dependencies` configuration to follow
the example from r-lib: we need `any::pkgdown` to install pkgdown,
and add `local::.` to install our own library (which is then required
by pkgdown when building the website).
  • Loading branch information
rchaput committed May 27, 2023
1 parent 05c76e0 commit 638737e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: pkgdown
extra-packages: any::pkgdown, local::.
needs: website

- name: Deploy package
Expand Down

0 comments on commit 638737e

Please sign in to comment.