Skip to content

move to rocker

move to rocker #13

Workflow file for this run

name: Documentation
on:
push:
branches: [ master ]
release:
types: [ published ]
workflow_dispatch:
workflow_run:
workflows: ["CI"]
types: [completed]
branches: [master]
jobs:
docs:
runs-on: ubuntu-latest
container: rocker/tidyverse:latest
if: github.event.workflow_run.conclusion == 'success' || github.event_name != 'workflow_run'
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- 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: Configure git
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Actions"
- name: Build and deploy pkgdown site
run: pkgdown::deploy_to_branch(new_process = FALSE)
shell: Rscript {0}