Skip to content

fixup! ci: add workflow to deploy pkgdown site #2

fixup! ci: add workflow to deploy pkgdown site

fixup! ci: add workflow to deploy pkgdown site #2

Workflow file for this run

name: Deploy site
on:
push:
branches:
- scratch/deploy-site
tags:
- '[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: release
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown
- name: Install pdflatex
shell: bash
run: sudo apt-get install texlive-latex-base texlive-fonts-extra
- name: Build site
run: pkgdown::build_site_github_pages(dest_dir = "docs", install = TRUE)
shell: Rscript {0}
# - uses: metrumresearchgroup/actions/subdir-to-gh-pages@v1