Skip to content

GitHub Pages

GitHub Pages #157

Workflow file for this run

name: GitHub Pages
on:
workflow_run:
workflows: ['R-CMD-check']
branches: [main]
types: [completed]
workflow_dispatch:
jobs:
pkgdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
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: Deploy site
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "[email protected]"
Rscript -e "pkgdown::deploy_to_branch(new_process = FALSE)"