Skip to content

CI: update pkgdown to latest recommendend workflow #92

CI: update pkgdown to latest recommendend workflow

CI: update pkgdown to latest recommendend workflow #92

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/blob/master/examples/pkgdown.yaml
on:
push:
branches: [master]
tags: ['*']
name: pkgdown
jobs:
pkgdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: devel
use-public-rspm: true
- name: Install system dependencies
run: sudo apt-get install libmagick++-dev
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: pkgdown
- 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/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
folder: docs
git-config-name: ${{ github.actor }}
git-config-email: ${{ github.actor }}@users.noreply.github.com