Skip to content

pkgdown

pkgdown #50

Workflow file for this run

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: 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
- 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}