update man/docs #2
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: main | |
paths: | |
- "R/*.R" | |
- "R/*R" | |
pull_request: | |
branches: main | |
paths: | |
- "R/*.R" | |
- "R/*.R" | |
name: render man/ and docs/ | |
jobs: | |
render: | |
name: render man/ and docs/ | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-r@master | |
- uses: r-lib/actions/setup-pandoc@master | |
- name: Install dependencies | |
run: | | |
install.packages("xfun") | |
pkgs <- c('renv', 'roxygen2', 'pkgdown') | |
xfun::pkg_attach2(pkgs) | |
shell: Rscript {0} | |
- name: Render man/ and docs/ | |
run: | | |
Rscript --vanilla build_pkgs.R | |
- name: Commit results | |
run: | | |
git add -f man/ | |
git add -f docs/ | |
git commit -m 'gh actions: render man/ and docs/' | |
git push origin |