Skip to content

Add the two new exports to the pkgdown index #5

Add the two new exports to the pkgdown index

Add the two new exports to the pkgdown index #5

Workflow file for this run

name: pkgdown
# Builds the reference site and publishes it to GitHub Pages. Unlike the check
# and citation workflows this one is not shared from chross22/distsamp, since
# no reusable pkgdown workflow exists there yet.
on:
push:
branches: [main, master]
release:
types: [published]
workflow_dispatch:
permissions:
contents: write
concurrency:
group: pkgdown-${{ github.ref }}
cancel-in-progress: true
jobs:
pkgdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
# sf and terra need these to build from source on Linux.
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgdal-dev libgeos-dev libproj-dev libudunits2-dev
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website
- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
clean: false
branch: gh-pages
folder: docs