Merge pull request #207 from rstudio/aron-refresh-documentation #180
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 | |
- pkgdown | |
pull_request: | |
branches: | |
- main | |
- pkgdown | |
release: | |
types: [published] | |
workflow_dispatch: | |
name: pkgdown | |
jobs: | |
pkgdown: | |
runs-on: ubuntu-20.04 | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
RSC_VERSION: 2022.09.0 | |
RSC_LICENSE: ${{ secrets.RSC_LICENSE }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::pkgdown, local::. | |
needs: website | |
- name: Install dependencies | |
# TODO: a way to do this using setup-r-dependencies action...? | |
run: | | |
# TODO: dev version for pkg_lifecycle_statuses function | |
remotes::install_github("r-lib/lifecycle") | |
shell: Rscript {0} | |
- name: Start Connect | |
run: | | |
Rscript -e 'connectapi:::build_test_env()' | |
- name: Build site | |
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) | |
shell: Rscript {0} | |
- name: Deploy to GitHub pages 🚀 | |
if: github.event_name != 'pull_request' | |
uses: JamesIves/[email protected] | |
with: | |
clean: false | |
branch: gh-pages | |
folder: docs |