Merge pull request #410 from reichlab/bsweger/cleanup-unused-target-r… #89
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 | |
name: pkgdown | |
jobs: | |
pkgdown: | |
runs-on: macOS-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install dependencies | |
run: | | |
install.packages(c("devtools")) | |
remotes::install_deps(dependencies = TRUE) | |
devtools::install() | |
shell: Rscript {0} | |
- name: Build site | |
run: | | |
Rscript -e 'pkgdown::build_site()' | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v7 | |
with: | |
add: 'docs' | |
message: "Build pkgdown site" | |
default_author: github_actions | |
push: true |