This commit is contained in:
Mike Tokic 2021-09-08 15:00:50 -07:00
Родитель 0c4d402f61
Коммит 8c21eae7a8
1 изменённых файлов: 27 добавлений и 8 удалений

35
.github/workflows/pkgdown.yaml поставляемый
Просмотреть файл

@ -7,12 +7,17 @@ name: pkgdown
jobs:
pkgdown:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
env:
RSPM: https://packagemanager.rstudio.com/cran/__linux__/bionic/latest
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
id: install-r
- uses: r-lib/actions/setup-pandoc@v1
- name: Install pak and query dependencies
@ -22,16 +27,30 @@ jobs:
saveRDS(pak::pkg_deps("local::.", dependencies = TRUE), ".github/r-depends.rds")
shell: Rscript {0}
- uses: r-lib/actions/setup-r@v1
- name: Cache R packages
uses: actions/cache@v2
with:
use-public-rspm: true
path: ${{ env.R_LIBS_USER }}
key: ubuntu-18.04-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }}
restore-keys: ubuntu-18.04-${{ steps.install-r.outputs.installed-r-version }}-1-
- uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: pkgdown
needs: website
- name: Install system dependencies
if: runner.os == 'Linux'
run: |
pak::local_system_requirements(execute = TRUE)
pak::pkg_system_requirements("pkgdown", execute = TRUE)
shell: Rscript {0}
- name: Deploy package
- name: Install dependencies
run: |
pak::local_install_dev_deps(upgrade = TRUE)
pak::pkg_install("r-lib/pkgdown")
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL .
- name: Build and deploy pkgdown site
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"