Skip to content

Commit

Permalink
Automated file update from pkg-skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
pkg-skeleton Deploy Bot authored and pkg-skeleton Deploy Bot committed Nov 30, 2021
1 parent cde062b commit cd17f88
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/drat--insert-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: 'release'}
# - {os: ubuntu-latest, r: 'release'}
- {os: macOS-latest, r: 'release'}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
Expand Down
28 changes: 22 additions & 6 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ name: Website (pkgdown)

jobs:
pkgdown:
runs-on: ubuntu-latest
runs-on: macOS-latest

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -31,13 +32,28 @@ jobs:
- uses: r-lib/actions/setup-r@v1
with:
use-public-rspm: true
r-version: 'release'

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- uses: r-lib/actions/setup-r-dependencies@v1
- name: Cache R packages
uses: actions/cache@v1
with:
extra-packages: |
pkgdown
devtools
needs: website
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install dependencies
run: |
install.packages(c("remotes", "devtools"))
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("pkgdown")
shell: Rscript {0}

- name: Roxygenize
# The vignettes will be built in step "Deploy package"
Expand Down

0 comments on commit cd17f88

Please sign in to comment.