added include_children and include_parents params to filter_by_stop_id() #184
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
tags: | |
-'*' | |
name: pkgdown | |
jobs: | |
pkgdown: | |
runs-on: ubuntu-22.04 | |
env: | |
RSPM: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
id: install-r | |
- uses: r-lib/actions/setup-pandoc@v1 | |
- name: Java setup | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '11' | |
java-package: jdk | |
- name: Install pak and query dependencies | |
run: | | |
install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/") | |
saveRDS(pak::pkg_deps("local::.", dependencies = TRUE), ".github/r-depends.rds") | |
shell: Rscript {0} | |
- name: Restore R package cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
${{ env.R_LIBS_USER }}/* | |
!${{ env.R_LIBS_USER }}/pak | |
key: ubuntu-22.04-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }} | |
restore-keys: ubuntu-22.04-${{ steps.install-r.outputs.installed-r-version }}-1- | |
- name: Install system dependencies | |
run: | | |
pak::local_system_requirements(execute = TRUE) | |
pak::pkg_system_requirements("pkgdown", execute = TRUE) | |
shell: Rscript {0} | |
- name: Install dependencies | |
run: | | |
pak::local_install_dev_deps(upgrade = TRUE) | |
pak::pkg_install("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 "[email protected]" | |
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' |