@@ -13,44 +13,22 @@ name: pkgdown
1313jobs :
1414 pkgdown :
1515 if : ${{ github.event_name == 'push' || startsWith(github.head_ref, 'pkgdown/') }}
16- runs-on : ubuntu-18.04
16+ runs-on : ubuntu-latest
1717 env :
18- RSPM : https://packagemanager.rstudio.com/cran/__linux__/bionic/latest
19- GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
18+ GITHUB_PAT : ${{ secrets.GHA_PAT }}
2019 steps :
21- - uses : actions/checkout@v2
20+ - uses : actions/checkout@v4
2221
23- - uses : r-lib/actions/setup-r@v1
24- id : install-r
22+ - uses : r-lib/actions/setup-pandoc@v2
2523
26- - uses : r-lib/actions/setup-pandoc@v1
27-
28- - name : Install pak and query dependencies
29- run : |
30- install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/")
31- saveRDS(pak::pkg_deps(".", dependencies = TRUE), ".github/r-depends.rds")
32- shell : Rscript {0}
33-
34- - name : Cache R packages
35- uses : actions/cache@v2
24+ - uses : r-lib/actions/setup-r@v2
3625 with :
37- path : ${{ env.R_LIBS_USER }}
38- key : ${{ runner.os }}-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }}
39- restore-keys : ${{ runner.os }}-${{ steps.install-r.outputs.installed-r-version }}-1-
40-
41- - name : Install system dependencies
42- if : runner.os == 'Linux'
43- run : |
44- pak::local_system_requirements(execute = TRUE)
45- pak::pkg_system_requirements("pkgdown", execute = TRUE)
46- shell : Rscript {0}
26+ use-public-rspm : true
4727
48- - name : Install package and dependencies
49- run : |
50- pak::local_install_dev_deps(upgrade = TRUE)
51- pak::pkg_install("r-lib/pkgdown")
52- pak::pkg_install("rstudio/quillt")
53- shell : Rscript {0}
28+ - uses : r-lib/actions/setup-r-dependencies@v2
29+ with :
30+ extra-packages : any::pkgdown, local::.
31+ needs : website
5432
5533 - name : Install package
5634 run : R CMD INSTALL .
7553 with :
7654 publish-dir : ' docs'
7755 production-branch : master
78- github-token : ${{ secrets.GITHUB_TOKEN }}
56+ github-token : ${{ secrets.GHA_PAT }}
7957 deploy-message :
8058 ' Deploy from GHA: ${{ github.event.head_commit.message }} (${{ github.sha }})'
8159 enable-pull-request-comment : false
0 commit comments