pkgdown #650
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 # need to change this | |
paths: | |
- 'vignettes/**' | |
- 'man/**' | |
- 'README.**' | |
schedule: | |
# Rerun pkgdown after the (expected) time the facilebio_base container is | |
# rebuilt | |
- cron: '0 11 * * *' | |
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: lianos/sparrow:devel | |
env: | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
NOT_CRAN: true | |
CI: true | |
# For some reason I need to put these | |
GIT_AUTHOR_NAME: Steve Lianoglou | |
GIT_AUTHOR_EMAIL: slianoglou@gmail.com | |
GIT_COMMITTER_NAME: Steve Lianoglou | |
GIT_COMMITTER_EMAIL: slianoglou@gmail.com | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
# with: | |
# ref: 'main' | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v1 | |
with: | |
install-r: false | |
- name: Install dependencies | |
run: remotes::install_deps(dependencies = TRUE, upgrade = FALSE) | |
shell: Rscript {0} | |
- name: Install package | |
run: R CMD INSTALL . | |
- name: work around permission issue | |
run: git config --global --add safe.directory /__w/sparrow.shiny/sparrow.shiny | |
- name: Deploy package | |
run: pkgdown::deploy_to_branch(new_process = FALSE) | |
shell: Rscript {0} |