pkgdown #208
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: | |
- 'vignettes/**' | |
- 'man/**' | |
- 'README.**' | |
schedule: | |
# Rerun pkgdown after the (expected) time package is rebuilt on the daily. | |
# Let's give it 30 mins | |
- cron: '30 12 * * *' | |
workflow_dispatch: | |
inputs: | |
dummy: | |
description: 'A dummy variable to enable manual workflow execution' | |
required: false | |
default: 'gitty up' | |
name: pkgdown | |
jobs: | |
pkgdown: | |
runs-on: ubuntu-latest | |
container: facilebio/facilebio | |
env: | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
GIT_AUTHOR_NAME: Steve Lianoglou | |
GIT_AUTHOR_EMAIL: [email protected] | |
GIT_COMMITTER_NAME: Steve Lianoglou | |
GIT_COMMITTER_EMAIL: [email protected] | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v1 | |
with: | |
install-r: false | |
# pandoc is already installed in the docker container | |
# - uses: r-lib/actions/setup-pandoc@master | |
- name: Install dependencies | |
run: remotes::install_deps(dependencies = TRUE, upgrade = FALSE) | |
shell: Rscript {0} | |
- name: Install package | |
run: R CMD INSTALL . | |
- name: Deploy package | |
run: pkgdown::deploy_to_branch(new_process = FALSE) | |
shell: Rscript {0} |